Re: [STANDARDS] Documenting strange include behaviour

[email protected] (Rowan Collins)
Newsgroups php.standards
Message-ID <[email protected]>
Robert Stoll wrote on 13/11/2014 14:11:
>  From the example above we can see that variables and constants defined with define() do not remain in their namespace

Constants defined with define() are never scoped to the current 
namespace, this is not related to the use of include.

There's a user note in the manual which explains this rather well, and 
should probably be rolled into the text of the manual itself: 
http://php.net/define#90282
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.