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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: scott at popularlink dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 13:01:29 2025 UTC