From:             philip at cornado dot com
Operating system: linux
PHP version:      4.3.2
PHP Bug Type:     Unknown/Other Function
Bug description:  strange register_shutdown_function error for undefined functions

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 bug report at http://bugs.php.net/?id=23929&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=23929&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=23929&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=23929&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=23929&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=23929&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=23929&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=23929&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=23929&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=23929&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=23929&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23929&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=23929&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=23929&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=23929&r=gnused

Reply via email to