File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ class try_class
7
7
{
8
8
static public function main ()
9
9
{
10
- register_shutdown_function (array ("self " , "on_shutdown " ));
10
+ register_shutdown_function (array ("self " , "on_shutdown " ));
11
11
}
12
12
13
13
static public function on_shutdown ()
@@ -16,11 +16,13 @@ class try_class
16
16
}
17
17
}
18
18
19
- try_class::main ();
20
-
19
+ try_class::main ();
21
20
echo "Done \n" ;
22
21
?>
23
22
--EXPECT--
24
23
Done
25
24
26
- Warning: (Registered shutdown functions) Unable to call self::on_shutdown() - function does not exist in Unknown on line 0
25
+ Fatal error: Uncaught ValueError: (Registered shutdown functions) Unable to call self::on_shutdown() - function does not exist in [no active file]:0
26
+ Stack trace:
27
+ #0 {main}
28
+ thrown in [no active file] on line 0
Original file line number Diff line number Diff line change @@ -3202,7 +3202,7 @@ static int user_shutdown_function_call(zval *zv) /* {{{ */
3202
3202
if (!zend_is_callable (& shutdown_function_entry -> arguments [0 ], 0 , NULL )) {
3203
3203
zend_string * function_name
3204
3204
= zend_get_callable_name (& shutdown_function_entry -> arguments [0 ]);
3205
- php_error ( E_WARNING , "(Registered shutdown functions) Unable to call %s() - function does not exist" , ZSTR_VAL (function_name ));
3205
+ zend_value_error ( "(Registered shutdown functions) Unable to call %s() - function does not exist" , ZSTR_VAL (function_name ));
3206
3206
zend_string_release_ex (function_name , 0 );
3207
3207
return 0 ;
3208
3208
}
You can’t perform that action at this time.
0 commit comments