diff options
Diffstat (limited to 'ext/spl/tests/bug31926.phpt')
-rwxr-xr-x | ext/spl/tests/bug31926.phpt | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/ext/spl/tests/bug31926.phpt b/ext/spl/tests/bug31926.phpt deleted file mode 100755 index 428039b1cb..0000000000 --- a/ext/spl/tests/bug31926.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -Bug #31926 (php in free() error with RecursiveArrayIterator) ---FILE-- -<?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); -} - -?> ---EXPECT-- -int(0) -string(5) "world" |