You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
421 B

--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