On May 12, 2006, at 1:09 PM, Martin Alterisio wrote:
[snip]
When you call a function in the global scope from inside a member
function you're leaving the object scope, that's why this is null
in the global function
But my thought is that since the include was from inside the member
function that the included function would be in the scope of the
member function, and not global. (?)
So if I have:
class foo {
function bar()
{
function baz(){}
}
}
Would baz() be out of class scope here? Or are includes automatically
global no matter where they are called? Or is it the convoluted
manner in which I'm getting to baz() that's causing this?
Thanks!
Ed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php