From: akul at inbox dot ru
Operating system: All
PHP version: 4.3.3
PHP Bug Type: Documentation problem
Bug description: Error in set_error_handler() definition
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 bug report at http://bugs.php.net/?id=25543&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25543&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25543&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25543&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25543&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25543&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25543&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25543&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25543&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25543&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25543&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25543&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25543&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25543&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25543&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25543&r=gnused