Re: my last attempt at sanity with namespaces
| From: | Greg Beaver | Date: | Fri, 17 Oct 2008 20:10:55 +0000 |
| Subject: | Re: my last attempt at sanity with namespaces | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-41247@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
> Hi!
>
>> This is not what is proposed. The E_WARNING is *only* on a name
>> conflict. Please re-read or try the patch:
>>
>> http://pear.php.net/~greg/resolve_conflict.patch.txt
>
> I see the patch is doing zend_fetch_class, which autoloads. So
> autoloading on each call to namespace function?
yes - unless a user explicitly "use namespace blah;"
This would require namespace function users to do a little extra legwork
at the top of the file, which would then guarantee that class users'
code does not change behavior without warning.
Greg