php in free() error

From: Date: Thu, 10 Feb 2005 23:03:46 +0000
Subject: php in free() error
Groups: php.general 
Request: Send a blank email to php-general+get-208493@lists.php.net to get a copy of this message
Im playing around with iterators, and Im getting this error -> php in free(): warning: chunk is already free Im running php 5.0.3 on FreeBSD 5.3. Any ideas what may be wrong? Thanks <?php $array = array(0 => array('world')); class RecursiveArrayIterator extends ArrayIterator implements RecursiveIterator { function hasChildren() {
       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); } ?>

« previous php.general (#208493) next »