ID: 47014 Updated by: [email protected] Reported By: six at aegis-corp dot org -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Linux 2.6 PHP Version: 5.3.0alpha3 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 We don't know where the string comes from, so we can't kow which cntext you mean... Previous Comments: ------------------------------------------------------------------------ [2009-01-05 23:22:03] six at aegis-corp dot org Description: ------------ functions that accept callbacks do not look up the current namespace when searching for the callback name. I have observed this with register_shutdown_function() and pcntl_signal() but it's probably more than these two. sample code below works if we pass the fqn, ie: register_shutdown_function("test\\shutdown"); Reproduce code: --------------- <? namespace test; function shutdown() { echo "bye\n"; } register_shutdown_function("shutdown"); ?> Expected result: ---------------- bye Actual result: -------------- Warning: register_shutdown_function(): Invalid shutdown callback 'shutdown' passed in /root/php-5.3.0alpha3/ext/pcntl/- on line 11 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47014&edit=1
