Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59816 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24092 invoked from network); 13 Apr 2012 00:03:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Apr 2012 00:03:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:53002] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6F/A9-00290-B3D678F4 for ; Thu, 12 Apr 2012 20:03:07 -0400 Received: by obbta17 with SMTP id ta17so2638410obb.29 for ; Thu, 12 Apr 2012 17:03:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=JzYJDpiY+S54TuvuOYhkrrcRW06bHl5414g/GHPIYUw=; b=QHZri8Ciw9bjDGmvxdU3PY6Xhsbrin8aPMSfAjH8TUTLGUcpVU7KtHd1o90rfUGI5B RH8qImq03QYVw1VyHR1qfcyBEGXgGNgmk7wawqmwVlvmdk7xLnLsS83vphdLvpDXJaX8 iRyVR4NLhA2zBW3EKjihjHu+QOI7/AMvGq+zYvlUcIMNc5FfATVIMgsrgVsKQvlMD8lQ 2XjHIz+zBFQGgDRUHlKwRC7FxZJXgBQ9CYgdNQ3Rldx2ONmcyPeW+ufHn67hBZ6M8+mt CwD7IXQ+BIbgnyEjz/kRTSEthgwxrfDt+ikYdGTuYAOdtru+UKFC4n7TNrXae+/47NFx N1ug== Received: by 10.60.18.198 with SMTP id y6mr191731oed.38.1334275384530; Thu, 12 Apr 2012 17:03:04 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.182.226.9 with HTTP; Thu, 12 Apr 2012 17:02:24 -0700 (PDT) In-Reply-To: References: Date: Fri, 13 Apr 2012 09:02:24 +0900 X-Google-Sender-Auth: JnzS4rACi-8yKTMZc-wxr4vfBsw Message-ID: To: Arvids Godjuks Cc: PHP internals list , Kris Craig Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] New .phpp File Type for Pure-Code PHP Scripts From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi, 2012/4/13 Arvids Godjuks : > So ok, i write my code in files without extension, what happens? > > As it was said before, interpreter will not distinguish by the file > extension, ever. It is os dependant and so on. > > Why are you poluting the mailing list with things that are clearly said will > never happen? There aren't any clean solution for script only PHP (yet) There are 3 methods proposed so far. - php.ini setting that controls embedded-mode https://wiki.php.net/rfc/nophptags - include/require that loads non-embedded mode https://wiki.php.net/rfc/source_files_without_opening_tag - file extension that switch to non-embedded mode https://wiki.php.net/rfc/phpp All of these have pros and cons. I prefer mine, but I'll vote +1 for any if one of these will be accepted. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net