#40684 [Opn->Bgs]: about set_error_handler bug
| From: | derick@php.net | Date: | Thu, 01 Mar 2007 20:29:03 +0000 |
| Subject: | #40684 [Opn->Bgs]: about set_error_handler bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109770@lists.php.net to get a copy of this message | ||
ID: 40684
Updated by: derick@php.net
Reported By: dq2 at compass dot jp
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: windowsxp
PHP Version: 4.4.6
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
.
Previous Comments:
------------------------------------------------------------------------
[2007-03-01 20:27:39] dq2 at compass dot jp
Description:
------------
set_error_handler truncate over 1024bytes data to 1023bytes
Reproduce code:
---------------
ini_set('log_errors_max_len', 0);
set_error_handler('error_handler');
trigger_error(str_repeat('1', 1130));
function error_handler($code, $str, $file, $line) {
echo strlen($str). "\n";
exit();
}
Expected result:
----------------
1130
Actual result:
--------------
1023
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40684&edit=1