Re: PHP 5 Beta 2 RC1
| From: | Marcus B�rger | Date: | Mon, 27 Oct 2003 06:47:09 +0000 |
| Subject: | Re: PHP 5 Beta 2 RC1 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-5030@lists.php.net to get a copy of this message | ||
Hello Robert, George,
yes, the simplexml/foreach was borked before and can be considered fixed
now.
marcus
Monday, October 27, 2003, 2:03:24 AM, you wrote:
> Works fine from CVS. This was most likely fixed with the iterator stuff from
> Marcus.
> Rob
> From: George Schlossnagle
>> The following code loops indefinitely.
>>
>> $conf = simplexml_load_file("status.xml");
>> foreach($conf->services->service as $service) {
>> print $service->params->description."\n";
>> foreach($service->params as $foo) {
>> print "$foo\n";
>> }
>> }
--
Best regards,
Marcus mailto:helly@php.net