ID:               22472
 Updated by:       [EMAIL PROTECTED]
 Reported By:      nightik at intech dot ru
-Status:           Open
+Status:           Feedback
 Bug Type:         *General Issues
 Operating System: Windows 2000 Advanced Server
 PHP Version:      4.3.0
 New Comment:

You should be using E_USER_WARNING not E_WARNING. Once I make this
change I am unable to replicate the error you are seeing.


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

[2003-02-28 04:04:35] nightik at intech dot ru

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 this bug report at http://bugs.php.net/?id=22472&edit=1

Reply via email to