Re: Re: [RFC] Namespace syntax decision
| From: | Gregory Beaver | Date: | Wed, 26 Mar 2008 19:18:10 +0000 |
| Subject: | Re: Re: [RFC] Namespace syntax decision | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-36556@lists.php.net to get a copy of this message | ||
Marcus Boerger wrote:
> language out there that is in use and has anything like that. And even more
> scary to me, you did not solve anything by this because people still could
> write code prior to the namespace keyword. So no matter what we are screwed
?
cellog@lot-49:~/workspace/php5$ cat test.php
<?php
$a = 'before namespace';
namespace oops;
cellog@lot-49:~/workspace/php5$ sapi/cli/php -n test.php
Fatal error: Namespace declaration statement has to be the very first
statement in the script in /home/cellog/workspace/php5/test.php on line 3
Greg