Bug #14295: Scope of globals has changed

From: Date: Fri, 30 Nov 2001 08:51:41 +0000
Subject: Bug #14295: Scope of globals has changed
Groups: php.dev 
Request: Send a blank email to php-dev+get-72105@lists.php.net to get a copy of this message
From: v.puttrich@digitalliquid.de Operating system: Win2k PHP version: 4.0.6 PHP Bug Type: Variables related Bug description: Scope of globals has changed The following bug or feature (not yet sure what it is ;)) is related to the scope of global variables. SYSTEM: I use PHP 4.0.6 on Win2k pro as i downloaded it from this web site. The loading of extra modules does not change the described behaviour. The Server API is Apache (Apache V. 1.3.22 win) PHP.INI: register_globals and register_argc_argv is ON DESCRIPTION: I have the global variable $PHP_SELF. Now i include a file where I want to use $PHP_SELF. Within the included file, $PHP_SELF is unknown (it has lost it's global state), and i have to declare it global again. This appears for any other global variables too, $PHP_SELF is just an example- This behaviour seems to be new to PHP 4.0.6, because i didn't have the problem with 4.0.5. -- Edit bug report at: http://bugs.php.net/?id=14295&edit=1

« previous php.dev (#72105) next »