From:             phresno at concept-factory dot com
Operating system: Linux 2.4.20
PHP version:      4.3.1
PHP Bug Type:     Output Control
Bug description:  no error reporting

After trying to use set_error_handler() with my own handler, I now recieve
no error reporting on any script, regardless of using set_error_handler()
or not.

Example:
<?php
error_reporting(E_ALL);
define("STUFF", 1);
if (true)
{
define("STUFF", 2);
?>

Would normally generate messages about trying to redefine STUFF, and not
closing the IF statement; however, I now recieve no error/warnring/notice
messages at all from PHP.

This happened after trying to use set_erro_handler() in a a different
script example:

<?php
function my_handler($_errno, $_errstr, $_errfile, $_errline)
{
   printf("%i - %s in %s on line %i",
          $_errno,
          $_errstr,
          $_errfile,
          $_errline);

   return true;
}

set_error_handler("my_handler");

trigger_error("Just something in general", E_USER_ERROR);
?>
-- 
Edit bug report at http://bugs.php.net/?id=22966&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22966&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22966&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22966&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22966&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22966&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22966&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22966&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22966&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22966&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22966&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22966&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22966&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22966&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22966&r=gnused

Reply via email to