ru_php/Zend/tests/frameless_throwing_destructor.phpt

19 lines
337 B
PHP

--TEST--
Frameless call with throwing destructor
--FILE--
<?php
class Foo {}
class Bar {
public function __destruct() {
throw new Exception();
}
}
in_array(new Foo(), [new Bar()], true);
?>
--EXPECTF--
Fatal error: Uncaught Exception in %s:%d
Stack trace:
#0 %s(%d): Bar->__destruct()
#1 {main}
thrown in %s on line %d