Re: Re: php in free() error
| From: | Gerard Samuel | Date: | Fri, 11 Feb 2005 01:28:27 +0000 |
| Subject: | Re: Re: php in free() error | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208504@lists.php.net to get a copy of this message | ||
Jason Barnett wrote:
Gerard Samuel wrote: ...Ok. Off to check for, or post a bug report... Thanks<?php $array = array(0 => array('world')); class RecursiveArrayIterator extends ArrayIterator implements RecursiveIterator { function hasChildren() {This may be a platform-specific bug. I ran your test script on my box (Win2000, php 5.0.3) and it executed with no errors.return (is_array($this->current()));} function getChildren() {return new self($this->current());} } $it = new RecursiveIteratorIterator(new RecursiveArrayIterator($array)); foreach($it as $key => $val) { var_dump($key, $val); } ?>