phpbar.de logo

Mailinglisten-Archive

[php] PHP4 Bug?

[php] PHP4 Bug?

Wolfram Kriesing wolfram_(at)_kriesing.de
Tue, 3 Oct 2000 13:26:27 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0059_01C02D3D.88CA7B00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

i have just switched an application from PHP3.12 to PHP4.0.2 and the =
following strange thing occurs
works in PHP3 and NOT in PHP4  - while (list($key, $val) =3D =
each($aQuestions))
works in PHP4  -  foreach($aQuestions as $key =3D> $val)

why is that?
a known bug or my mistake?

thanks

wolfram kriesing

------=_NextPart_000_0059_01C02D3D.88CA7B00
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2014.210" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>i have just switched an application =
from PHP3.12 to=20
PHP4.0.2 and the following strange thing occurs</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>works in PHP3 and NOT in PHP4&nbsp; - =
while=20
(list($key, $val) =3D each($aQuestions))<BR>works in PHP4&nbsp; -&nbsp;=20
foreach($aQuestions as $key =3D&gt; $val)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>why is that?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>a known bug or my mistake?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>thanks</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>wolfram =
kriesing</FONT></DIV></DIV></BODY></HTML>

------=_NextPart_000_0059_01C02D3D.88CA7B00--



php::bar PHP Wiki   -   Listenarchive