Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59434 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57677 invoked from network); 7 Apr 2012 18:12:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Apr 2012 18:12:56 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 config.schlueters.de Received: from [217.114.211.66] ([217.114.211.66:43296] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/BD-23111-6A3808F4 for ; Sat, 07 Apr 2012 14:12:55 -0400 Received: from [192.168.2.43] (unknown [84.57.14.235]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id A601460379; Sat, 7 Apr 2012 20:12:51 +0200 (CEST) References: In-Reply-To: Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-ID: Cc: PHP Internals X-Mailer: iPod Mail (9B176) Date: Sat, 7 Apr 2012 20:12:44 +0200 To: Tom Boutell Subject: Re: [PHP-DEV] PHP class files without wrote: > * If the CLI sees a .phpc file extension, the parser starts out in PHP > mode (no opening into HTML mode after that with ?>. >=20 > * If a require/include statement sees a .phpc file extension, the > parser starts out in PHP mode. I don't think such magic is good. It will rather confuse people. Back when I= thought about this my best idea was a flag to include/require which at some= point will emit a notice if not set and where in the long run the default c= hanges. But I dropped the idea. Reasons include the fact that the whole envi= ronment is being forced to change (IDEs, code checkers, ...) and well most p= eople not only have to type the opening tag but also some file header (licen= se, phpdoc, ...) which makes the benefit smaller. And then there's another t= hought: The