]> granicus.if.org Git - php/blob
6c3d721716
[php] /
1 --TEST--
2 Bug #51827 (Bad warning when register_shutdown_function called with wrong num of parameters)
3 --FILE--
4 <?php
5
6
7 function abc() {
8     var_dump(1);
9 }
10
11 register_shutdown_function('timE');
12 register_shutdown_function('ABC');
13 register_shutdown_function('exploDe');
14
15 ?>
16 --EXPECTF--
17 int(1)
18
19 Fatal error: Uncaught ArgumentCountError: explode() expects at least 2 parameters, 0 given in [no active file]:0
20 Stack trace:
21 #0 [internal function]: explode()
22 #1 {main}
23   thrown in [no active file] on line 0