Bug #5607 Updated: Variables missing within require code

From: Date: Tue, 19 Feb 2002 10:23:37 +0000
Subject: Bug #5607 Updated: Variables missing within require code
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-554@lists.php.net to get a copy of this message
ID: 5607 Updated by: hvalette@free.fr -Reported By: mikro@nextra.sk +Reported By: hvalette@free.fr Status: Closed Bug Type: Other Operating System: MS Windows NT 4.0 PHP Version: 4.0.1pl2 New Comment: Hi, I looked for fix of the same problem without success. Have you now a solution concerning this problem of gaobal variables with require command ? Does an include() fix the problem ? Thank you in advance HV Previous Comments: ------------------------------------------------------------------------ [2000-08-08 23:03:11] waldschrott@php.net Closed due to missing user feedback. ------------------------------------------------------------------------ [2000-07-17 06:42:18] stas@cvs.php.net Please provide runnable reproducing code. ------------------------------------------------------------------------ [2000-07-15 11:37:03] mikro@nextra.sk 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=5607&edit=1

« previous php.bugs (#554) next »