PHP 4.0 Bug #9539 Updated: extract() does not overwrite old values in a while loop with the EXTR_OVERWRITE

From: Date: Tue, 10 Apr 2001 14:47:35 +0000
Subject: PHP 4.0 Bug #9539 Updated: extract() does not overwrite old values in a while loop with the EXTR_OVERWRITE
Groups: php.dev 
Request: Send a blank email to php-dev+get-51338@lists.php.net to get a copy of this message
ID: 9539 Updated by: sniper Reported By: scott@popularlink.com Old-Status: Feedback Status: Closed Bug Type: Variables related Assigned To: Comments: No feedback. If this happens also with soon to be released PHP 4.0.5, reopen this bug report. --Jani Previous Comments: --------------------------------------------------------------------------- [2001-03-06 07:01:47] stas@php.net reclassify --------------------------------------------------------------------------- [2001-03-03 17:17:43] sniper@php.net Please try the latest CVS snapshot from http://snaps.php.net/ as I think this is already fixed. --Jani --------------------------------------------------------------------------- [2001-03-03 15:51:28] scott@popularlink.com $sql = "select * from organization order by regionalrequirement,organizationname"; $result = mysql_query($sql); while ($row=mysql_fetch_array($result)) { // $organizationnameinchinese=""; // if this line was not included .. the value // $organizationnameinchinese would not get the new value extract ($row,EXTR_OVERWRITE); echo "The school listed are <A href=vieworganization.php?orgid=$id>$organizationname </a> $organizationnameinchinese<BR><BR>"; } --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9539&edit=2

« previous php.dev (#51338) next »