1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/spl/tests/bug41828.phpt
2020-07-17 16:06:54 +02:00

23 lines
443 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();
?>
--EXPECTF--
Fatal error: Uncaught Error: The foo instance wasn't initialized properly in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d