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

From: Date: Tue, 06 Mar 2001 12:01:47 +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-48025@lists.php.net to get a copy of this message
ID: 9539 Updated by: stas Reported By: scott@popularlink.com Status: Feedback Old-Bug Type: Scripting Engine problem Bug Type: Variables related Assigned To: Comments: reclassify Previous Comments: --------------------------------------------------------------------------- [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 (#48025) next »