PHP 4.0 Bug #9539: extract() does not overwrite old values in a while loop with the EXTR_OVERWRITE
| From: | scott at popularlink dot com | Date: | Sat, 03 Mar 2001 20:51:28 +0000 |
| Subject: | PHP 4.0 Bug #9539: 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-47855@lists.php.net to get a copy of this message | ||
From: scott@popularlink.com
Operating system: OpenBSD 2.8
PHP version: 4.0.4
PHP Bug Type: MySQL related
Bug description: extract() does not overwrite old values in a while loop with the EXTR_OVERWRITE
$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>";
}
--
Edit Bug report at: http://bugs.php.net/?id=9539&edit=1