ID:               25543
 Updated by:       [EMAIL PROTECTED]
 Reported By:      akul at inbox dot ru
-Status:           Open
+Status:           Closed
 Bug Type:         Documentation problem
 Operating System: All
 PHP Version:      4.3.3
 New Comment:

Fixed, the right type was mixed. I also added an explanation for the
array returned


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

[2003-09-15 08:33:08] akul at inbox dot ru

Description:
------------
I see:
  string set_error_handler ( callback error_handler)

Must be:
  callback set_error_handler ( callback error_handler)

Because:
"Returns the _previously defined error handler_ (if any), or FALSE on
error." 

Reproduce code:
---------------
<?
class a
{
        function h()
        {
                echo "a::h()";
        }
};

set_error_handler(array('a','h'));
print_r(set_error_handler(array('a','h')));

?>



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


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

Reply via email to