ID:               49090
 User updated by:  doctorrock83 at gmail dot com
 Reported By:      doctorrock83 at gmail dot com
 Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Linux
 PHP Version:      5.2.10
 New Comment:

How do you then explain that just replacing
$result = call_user_func_array('ucfirst', array());
by
ucfirst();

makes PHP go into the custom error handler function ?


Previous Comments:
------------------------------------------------------------------------

[2009-07-29 13:56:34] j...@php.net

Try doing 'var_dump()' on the call to set_error_handler() and you'll
see it returns NULL which means it never registered your invalid error
handler callback.

------------------------------------------------------------------------

[2009-07-29 07:29:28] doctorrock83 at gmail dot com

setting the error handler works, however it doesn't get called)

------------------------------------------------------------------------

[2009-07-28 19:18:06] j...@php.net

Setting the error handler fails, so why should it be used..?

------------------------------------------------------------------------

[2009-07-28 19:02:27] doctorrock83 at gmail dot com

Well call_user_func_array() actually generates an error which is not
trapped in the custom error handler as it should be)

------------------------------------------------------------------------

[2009-07-28 18:29:02] j...@php.net

That's quite expected output. What exactly are you saying the bug is?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/49090

-- 
Edit this bug report at http://bugs.php.net/?id=49090&edit=1

Reply via email to