[UPHPU] inherit scope but not contribute to?

Wade Preston Shearer wadeshearer.lists at me.com
Thu Jan 28 00:57:15 MST 2010


On 28 Jan 2010, at 0:41, Wade Preston Shearer wrote:

> I sure hope this question makes sense.
>
> I have a script that includes another script. I want the code in the  
> second script to inherit the scope of the first but I don't want it  
> contribute to the scope. Is that possible? Including the file within  
> a function will prevent it from contributing, but it also prevents  
> it from having access to the parents scope.

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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3392 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20100128/eae11b71/attachment.bin 


More information about the UPHPU mailing list