From: mdpm2 at rohms dot com Operating system: FreeBSD 4.5 PHP version: 4.4.0 PHP Bug Type: Variables related Bug description: variable corruption in nested functions using extract()
Description: ------------ This problem was introduced after PHP 4.3.6 (last known version where it wasn't reproducable) and is still present in 4.4.0 Functions are unable to reference passed variables if they are called within a parent function that executes: extract($GLOBALS,EXTR_REFS); Prior to 4.4.0, referenced vars and globals would contain random other variable values; as of 4.4.0 they're NULL or 0. I'm trying to develop some code to isolate the problem but my error appears within a function that is recursive, but even the first iteration of the function does not receive the variable values passed as arguments. I have to assume this may be some issue with the way the compiler/optimizer handles the code during compilation. -- Edit bug report at http://bugs.php.net/?id=33985&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33985&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33985&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33985&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33985&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33985&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33985&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33985&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33985&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33985&r=support Expected behavior: http://bugs.php.net/fix.php?id=33985&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33985&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33985&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33985&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33985&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33985&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33985&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33985&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33985&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33985&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33985&r=mysqlcfg
