Re: [RFC] Namespace and Parse tags on Include and Require

From: Date: Tue, 06 Mar 2012 23:17:17 +0000
Subject: Re: [RFC] Namespace and Parse tags on Include and Require
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-58701@lists.php.net to get a copy of this message
On 06/03/12 23:08, Michael Morris wrote: > 2012/3/6 Ángel González <keisial@gmail.com>: >> Tagless files interpreted as php is the wrong way to go. >> I think you should instead propose it as: >> * A file included in that mode MUST begin with <?php. >> * ?> is forbidden in such mode unless followed by EOF. > Ever work with older versions of subversion or vi? (Many editors will > put a carriage return after the last character of the file). So no, > you're wrong. Requiring ?> at EOF would just be stupid. Good point. I only wanted to restrict, ?> + <output> ?>\n doesn't produce an empty line, so it's fine So it'd be either * No ?> * ?> * ?>\n

« previous php.internals (#58701) next »