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