Re: [RFC] Namespace-scoped declares

From: Date: Fri, 23 Sep 2016 21:58:19 +0000
Subject: Re: [RFC] Namespace-scoped declares
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-96122@lists.php.net to get a copy of this message
On 23 September 2016 at 20:45, Stanislav Malyshev <smalyshev@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

« previous php.internals (#96122) next »