Re: [PHP-DEV] Re: Globals unavailable, require oddity

2005-10-14 Thread Derick Rethans
On Fri, 14 Oct 2005, Marcus Bointon wrote: > I'm aware of how it's supposed to work, but the problem is that it's doing > something very screwy for me and not working like it should. Because it's so > different to how it normally works, I can only conclude that it's a php.ini > problem (though I c

Re: [PHP-DEV] Re: Globals unavailable, require oddity

2005-10-14 Thread Marcus Bointon
On 14 Oct 2005, at 07:07, Unknown W. Brackets wrote: If you include a file within a function, that file will be loaded in that function's scope. Example: The same happens if b.class.php is included within a function (or class member, etc.) and includes a.inc.php, as in your example (I am

[PHP-DEV] Re: Globals unavailable, require oddity

2005-10-13 Thread Unknown W. Brackets
If you include a file within a function, that file will be loaded in that function's scope. Example: The same happens if b.class.php is included within a function (or class member, etc.) and includes a.inc.php, as in your example (I am presuming.) If this is the problem, I suggest simply a

[PHP-DEV] Re: Globals unavailable, require oddity

2005-10-13 Thread Oliver Grätz
Marcus Bointon schrieb: > I posted this on general a while ago and the only conclusion anyone > could come to is that there's a PHP bug somewhere. Hm? I tested you code on a Debian 5.1 RC1 system and could not reproduce the problem. I thought you failed to post the whole code you used since you