forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgh_21699.phpt
More file actions
31 lines (30 loc) · 707 Bytes
/
gh_21699.phpt
File metadata and controls
31 lines (30 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--TEST--
GH-21699: Assertion failure in shutdown_executor when error handler throws during self:: callable resolution
--FILE--
<?php
set_error_handler(function () {
throw new Exception;
});
class bar {
public static function __callstatic($fusion, $b)
{
}
public function test()
{
call_user_func('self::y');
}
}
$x = new bar;
$x->test();
?>
--EXPECTF--
Fatal error: Uncaught Exception in %s:%d
Stack trace:
#0 %s(%d): {closure:%s}(%d, 'Use of "self" i%s', '%s', %d)
#1 %s(%d): bar->test()
#2 {main}
Next TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, (null) in %s:%d
Stack trace:
#0 %s(%d): bar->test()
#1 {main}
thrown in %s on line %d