From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.2.0 PHP Bug Type: Arrays related Bug description: extract function and null values
In earlier versions of PHP ... when looping through a set of database data, for example, and "extract"ing on each loop -- the extract function would overwrite the variable with the previous value, even if it was NULL. I just recently switched servers that had a more recent version of PHP. Now extract behaves differently. On the next pass through, the variable is not overwritten if the new value is NULL. This requires the use of "unset" on each loop for each variable that could have NULL values. I see nothing in the changelog about this, so I'm trying to determine if it's a bug, or was changed on purpose. If it's a change, I'm not sure I understand why, since it would seem to be much more useful to have it overwritten with the NULL value. -- Edit bug report at http://bugs.php.net/?id=19867&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19867&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19867&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19867&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19867&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19867&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19867&r=support Expected behavior: http://bugs.php.net/fix.php?id=19867&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19867&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19867&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19867&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19867&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=19867&r=dst IIS Stability: http://bugs.php.net/fix.php?id=19867&r=isapi