Re: svn: /php/php-src/ branches/PHP_5_4/Zend/zend_compile.c trunk/Zend/zend_compile.c
| From: | Johannes Schlüter | Date: | Tue, 16 Aug 2011 13:19:58 +0000 |
| Subject: | Re: svn: /php/php-src/ branches/PHP_5_4/Zend/zend_compile.c trunk/Zend/zend_compile.c | ||
| References: | 1 2 3 4 5 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-65869@lists.php.net to get a copy of this message | ||
On Tue, 2011-08-16 at 13:44 +0200, Hannes Magnusson wrote:
> "use foobar;" has no effect, at all, and you will get an warning
> message telling you that.
It has an effect. In
namespace strict { class C {} }
namespace foo { use strict; new strict\C; }
It saves one character of typing. Without the use strict I'd have to
write \strict\C. If this is useful might be questioned but it is valid.
> If you however mix Perl with PHP and attempt to do "use strict;"
> you'll get a nice little errormessage easter egg alerting you of your
> mistakes.
The message should at least be nicer. I'd remove it, though.
johannes