Re: Re: [DRAFT] [RFC] Function autoloading
| From: | Nicolas Grekas | Date: | Fri, 30 Aug 2013 12:53:41 +0000 |
| Subject: | Re: Re: [DRAFT] [RFC] Function autoloading | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68720@lists.php.net to get a copy of this message | ||
Hi
The only regression can be where autoloaders are defined, and people are
> relying on the legacy undefined constant behavior (which triggers an
> E_NOTICE).
>
that makes me think about this code :
<?php namespace foo; bar(); ?>
What autoload should be triggered?
"foo\bar" or "bar"?
Both are valid isn't it?
Should autoloading functions and constants be restricted to namespaced ones
only?
Then the BC issue you spot would disappear.