Re: [RFC] "use global functions/consts" statement

From: Date: Sat, 18 Jan 2020 20:03:34 +0000
Subject: Re: [RFC] "use global functions/consts" statement
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-108194@lists.php.net to get a copy of this message
Hi, I find that the “disable_ambiguous_element_lookup” directive name is, well, ambiguous. Does it mean that it will look up only in the current namespace, or only in the global namespace? I can’t guess. Maybe a three-value directive: declare(function_and_const_lookup=global); declare(function_and_const_lookup=namespace); declare(function_and_const_lookup=fallback); // the default —Claude

« previous php.internals (#108194) next »