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 @@ -2840,7 +2840,7 @@ static int user_shutdown_function_call(zval *zv) /* {{{ */
2840
2840
if (!zend_is_callable (& shutdown_function_entry -> arguments [0 ], 0 , NULL )) {
2841
2841
zend_string * function_name
2842
2842
= zend_get_callable_name (& shutdown_function_entry -> arguments [0 ]);
2843
- php_error ( E_WARNING , "(Registered shutdown functions) Unable to call %s() - function does not exist" , ZSTR_VAL (function_name ));
2843
+ zend_value_error ( "(Registered shutdown functions) Unable to call %s() - function does not exist" , ZSTR_VAL (function_name ));
2844
2844
zend_string_release_ex (function_name , 0 );
2845
2845
return 0 ;
2846
2846
}
You can’t perform that action at this time.
0 commit comments