mirror of
https://github.com/php/php-src.git
synced 2024-09-24 19:37:26 +00:00
1c94ff0595
RFC: https://wiki.php.net/rfc/engine_exceptions_for_php7 Pending changes regarding naming of BaseException and whether it should be an interface.
30 lines
527 B
PHP
30 lines
527 B
PHP
--TEST--
|
|
Bug #64966 (segfault in zend_do_fcall_common_helper_SPEC)
|
|
--FILE--
|
|
<?php
|
|
function test($func) {
|
|
try {
|
|
$a = $func("");
|
|
} catch (EngineException $e) {
|
|
throw new Exception();
|
|
}
|
|
return true;
|
|
}
|
|
class A {
|
|
public function b() {
|
|
test("strlen");
|
|
test("iterator_apply");
|
|
}
|
|
}
|
|
|
|
$a = new A();
|
|
$a->b();
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught exception 'Exception' in %sbug64966.php:6
|
|
Stack trace:
|
|
#0 %sbug64966.php(13): test('iterator_apply')
|
|
#1 %sbug64966.php(18): A->b()
|
|
#2 {main}
|
|
thrown in %sbug64966.php on line 6
|