#23929 [Opn->Bgs]: strange register_shutdown_function error for undefined functions
| From: | helly@php.net | Date: | Sat, 31 May 2003 22:00:27 +0000 |
| Subject: | #23929 [Opn->Bgs]: strange register_shutdown_function error for undefined functions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-40797@lists.php.net to get a copy of this message | ||
ID: 23929
Updated by: helly@php.net
Reported By: philip at cornado dot com
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: linux
PHP Version: 4.3.2
-Assigned To:
+Assigned To: helly
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
When some engine facility tries to call a non existing functions you
receive such errors.
Previous Comments:
------------------------------------------------------------------------
[2003-05-31 15:55:47] philip at cornado dot com
register_shutdown_function() provides a warning instead of a fatal
error when calling an undefined function. Not sure if this is
intentional or not but here's a test script:
<?php
echo 'hello';
register_shutdown_function('do_not_exist');
?>
And next, the strange looking error. Same result for both Apache
module and CLI:
Hello
Warning: Unknown(): Unable to call do_not_exist() - function does not
exist in Unknown on line 0
A PHP5 CLI demonstrates this same error.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23929&edit=1