On 23 September 2016 at 20:45, Stanislav Malyshev <smalys...@gmail.com> wrote:
> Imagine how > fun it is if somebody's action in different code module wouldn't just > mess up some data - it would actually break your code by changing > language semantics for your code! If you are concerned about libraries modifying how code is run, the same theoretical problem exists with libraries that register autoloaders - 'omg they can totally change what code is even going to be run, let alone the precise semantic behaviour'. This turns out not to be a problem, as any library that did that would lose all of it's users immediately. For this RFC, it would be usual to only have the namespace_declare() in the same place as the autoloader(s) are registered; in the bootstrap file before any real code is run. cheers Dan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php