|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-02-28 11:06 UTC] iliaa@php.net
[2003-03-01 02:57 UTC] nightik at intech dot ru
[2003-03-04 20:04 UTC] sniper@php.net
[2003-03-05 02:33 UTC] nightik at intech dot ru
[2003-03-05 02:53 UTC] nightik at intech dot ru
[2003-03-05 06:36 UTC] sniper@php.net
[2003-03-05 21:21 UTC] tim dot php at ebw dot ca
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 09 11:00:01 2025 UTC |
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.