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:[EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php