go to bug id or search bugs for
When register_shutdown_function is called with a function that expects a certain number of parameters, and a different number are given, a very unhelpful warning is printed:
Warning: (null)() expects exactly 1 parameter, 0 given in Unknown on line 0
This can take slightly different forms:
Warning: (null)() expects at least 2 parameters, 1 given in Unknown on line 0
or on a different server:
Warning: Wrong parameter count for (null)() in Unknown on line 0
<?php register_shutdown_function('explode'); ?>
I expect to be given the correct function name, filename, and line number in the warning.
I am given useless information for function name, filename, and line number.
Add a Patch
Add a Pull Request
Automatic comment from SVN on behalf of felipe
Log: - Fixed bug #51827 (Bad warning when register_shutdown_function called with wrong num of parameters)
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.