From: Nico dot Laus dot 2002 at gmx dot de Operating system: Windows & Linux PHP version: 5CVS-2004-01-16 (dev) PHP Bug Type: Scripting Engine problem Bug description: undefined variable/function where there isn't one
Description: ------------ since I installed PHP5RC1-dev (Apache 2, Win/Linux), I have encountered a quite strange bug. It gives me an "variable not defined" but some lines above it is been defined. I've also got one message telling me that "Fatal error: Unknown function: _GET() in index.php on line 12" but neither I use such function, nor I declare one. only one line above, I acces the $_GET[] variable. This happens in very different situations with different variables and even "real" funtions. In PHP5 beta 2, this hasn't happened. It's also very strange, that this bug appears randomly. So I cannot even give a reproduce code because even simple examples like $test[0] = 'test'; print $test[0]; or if ($_GET['test']=='test') print 'test'; can cause this problem -- Edit bug report at http://bugs.php.net/?id=26939&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26939&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26939&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26939&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26939&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26939&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26939&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26939&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26939&r=support Expected behavior: http://bugs.php.net/fix.php?id=26939&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26939&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26939&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26939&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26939&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26939&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26939&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26939&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26939&r=float