[UPHPU] inherit scope but not contribute to?
Joseph Scott
joseph at josephscott.org
Thu Jan 28 08:37:55 MST 2010
I think you are either going to have to do some funky $global action
(like what you describe), or wrap the different scopes in functions
and pass the data around.
PHP only does data scoping in obvious places, like functions, classes
and methods. Unless you get into the new namespace support there's no
per file scoping.
On Thu, Jan 28, 2010 at 12:57 AM, Wade Preston Shearer
<wadeshearer.lists at me.com> wrote:
> A solution I have come up with is to extract $globals within the function.
> Is there any reason to not do such a thing? processing? security
--
Joseph Scott
joseph at josephscott.org
http://josephscott.org/
More information about the UPHPU
mailing list