|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-07-16 17:34 UTC] r dot wilczek at web-appz dot de
[2012-07-16 17:34 UTC] r dot wilczek at web-appz dot de
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 10:00:01 2025 UTC |
Description: ------------ Within a namespace, set_error_handler($callable) tries to resolve $callable against this namespace, if $callable is a simple string. This is inconsistent to other PHP-APIs, which do not resolve static global functionnames against the current namespace. Test script: --------------- <?php namespace Foo; function handle() {} set_error_handler('handle'); Expected result: ---------------- # no error, warning etc. at all Actual result: -------------- PHP Warning: set_error_handler() expects the argument (handle) to be a valid callback