php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9539 extract() does not overwrite old values in a while loop with the EXTR_OVERWRITE
Submitted: 2001-03-03 15:51 UTC Modified: 2001-04-10 10:47 UTC
From: scott at popularlink dot com Assigned:
Status: Closed Package: Variables related
PHP Version: 4.0.4 OS: OpenBSD 2.8
Private report: No CVE-ID: None
 [2001-03-03 15:51 UTC] scott at popularlink dot 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>";
}

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-03 17:17 UTC] sniper@php.net
Please try the latest CVS snapshot from http://snaps.php.net/ as I think 
this is already fixed.

--Jani

 [2001-03-06 07:01 UTC] stas@php.net
reclassify
 [2001-04-10 10:47 UTC] sniper@php.net
No feedback. If this happens also with soon to be released PHP 4.0.5, reopen this bug report.

--Jani

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 07:01:25 2019 UTC