|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-05-15 01:48 UTC] felipe@php.net
[2010-05-15 01:48 UTC] felipe@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: felipe
[2010-05-15 01:48 UTC] felipe@php.net
[2010-05-15 01:49 UTC] felipe@php.net
-Package: Unknown/Other Function
+Package: Scripting Engine problem
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ 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 Test script: --------------- <?php register_shutdown_function('explode'); ?> Expected result: ---------------- I expect to be given the correct function name, filename, and line number in the warning. Actual result: -------------- I am given useless information for function name, filename, and line number.