From: nightik at intech dot ru Operating system: Windows 2000 Advanced Server PHP version: 4.3.0 PHP Bug Type: *General Issues Bug description: set_error_handler
There is bug ---- example.php ---- <?php class example { function example() { set_error_handler(array(&$this, "_error_handler")); // do somthing generate... trigger_error("Error", E_WARNING); } function _error_handler($errno, $errstr, $errfile, $errline) { echo "<b>$errno</b>: $errstr in $errfile in line $errline <br>"; } } $class = new example(); ?> Some times this script outputs: ------- Warning: Error in z:\home\lego\www\test_err.php on line 8 ------- but some times outputs: ------- 512: Error in z:\home\lego\www\test_err.php in line 8 ------- So, some times system error handler works, but enother times method _error_handler from example class works. -- Edit bug report at http://bugs.php.net/?id=22472&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22472&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22472&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22472&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22472&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22472&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22472&r=support Expected behavior: http://bugs.php.net/fix.php?id=22472&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22472&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22472&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22472&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22472&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22472&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22472&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22472&r=gnused