php-src/ext/spl/tests/bug41828.phpt
Gustavo André dos Santos Lopes 41abc6d017 - Reverted changes that required constructor overrides to invoke the parent
constructor in several SPL classes and applied 5.3 fixes instead.
  Related bugs: #54384, #55175 and #55300
2011-10-29 23:17:18 +00:00

22 lines
421 B
PHP

--TEST--
Bug #41828 (Segfault if extended constructor of RecursiveIterator doesn't call its parent)
--FILE--
<?php
class foo extends RecursiveIteratorIterator {
public function __construct($str) {
}
public function bar() {
}
}
$foo = new foo("This is bar");
echo $foo->bar();
?>
==DONE==
<?php exit(0); ?>
--EXPECTF--
Fatal error: main(): The foo instance wasn't initialized properly in %s on line %d