Re: Inconsistencies in 5.3
| From: | Marcus Boerger | Date: | Wed, 13 Aug 2008 13:21:34 +0000 |
| Subject: | Re: Inconsistencies in 5.3 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-39916@lists.php.net to get a copy of this message | ||
Hello Lars,
Wednesday, August 13, 2008, 11:55:23 AM, you wrote:
> Hi Markus,
> Am Dienstag, den 12.08.2008, 22:51 +0200 schrieb Marcus Boerger:
> [...]
>> a) Prevent include/require inside namespaced functions.
>>
>> Patch: php-no-include-in-namespaced-functions-6.0-20080812.diff.txt
>>
>> Should pretty much work.
> So this means something like this won't work without a warning anymore?
> namespace Foo;
> class View
> {
> public function render($file)
> {
> include $file;
> }
> }
> [...]
> cu, Lars
Namespaces are new, so it never worked before. But yes, this would trigger
a warning in the compiler which means you are told to not do this with apc
or other compiler caches.
marcus
marcus
Best regards,
Marcus