Bug #17522: globals variables dont work !!!!

From: Date: Thu, 30 May 2002 10:16:55 +0000
Subject: Bug #17522: globals variables dont work !!!!
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-8897@lists.php.net to get a copy of this message
From: greg.burri@net2000.ch Operating system: windows xp PHP version: 4.2.0 PHP Bug Type: Variables related Bug description: globals variables dont work !!!! It's very simple : that dont work !!!!!!!!!! : <?php function foo1($x) { function foo2() { global $x; echo '$x =', $x, '<br>'; } } foo1(3); ?> when you are doing recursivity the globals variables are very very very important -- Edit bug report at http://bugs.php.net/?id=17522&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17522&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17522&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17522&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17522&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17522&r=support Expected behavior: http://bugs.php.net/fix.php?id=17522&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17522&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17522&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17522&r=globals

« previous php.bugs (#8897) next »