PHP 4.0 Bug #5607: Variables missing within require code
| From: | mikro at nextra dot sk | Date: | Sat, 15 Jul 2000 15:37:03 +0000 |
| Subject: | PHP 4.0 Bug #5607: Variables missing within require code | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-24542@lists.php.net to get a copy of this message | ||
From: mikro@nextra.sk
Operating system: MS Windows NT 4.0
PHP version: 4.0.1pl2
PHP Bug Type: Other
Bug description: Variables missing within require code
When I define variable within included part of code than my variable is not visible in fuctions
within included part.
Example:
.
.
.
require(foo.php)
.
.
.
[foo.php]
.
.
.
$variable="something";
.
.
.
here is variable visible
.
.
function Foo(){
global $variable;
.
.
here is variable not visible for some strange reasons.
.
.
}
please check this situation.