Ask a Question related to PHP Bugs, Design and Development.
-
dq2 at compass dot jp #1
#40684 [NEW]: about set_error_handler bug
From: dq2 at compass dot jp
Operating system: windowsxp
PHP version: 4.4.6
PHP Bug Type: *General Issues
Bug description: about set_error_handler bug
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 bug report at [url]http://bugs.php.net/?id=40684&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40684&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40684&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40684&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40684&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=40684&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=40684&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40684&r=needscript[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=40684&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=40684&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=40684&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=40684&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=40684&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=40684&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40684&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=40684&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=40684&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40684&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=40684&r=float[/url]
No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40684&r=nozend[/url]
MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40684&r=mysqlcfg[/url]
dq2 at compass dot jp Guest
-
#40684 [Opn->Bgs]: about set_error_handler bug
ID: 40684 Updated by: derick@php.net Reported By: dq2 at compass dot jp -Status: Open +Status: Bogus... -
#25128 [Opn->Bgs]: set_error_handler not sending reference
ID: 25128 Updated by: sniper@php.net Reported By: auroraeosrose at hotmail dot com -Status: Open +Status: ... -
#25128 [NEW]: set_error_handler not sending reference
From: auroraeosrose at hotmail dot com Operating system: Win XP Pro SP1 PHP version: 4CVS-2003-08-18 (stable) PHP Bug Type: ... -
Notice errors with set_error_handler
Questions in comments. Thanks you. Greetings, - John <? error_reporting (E_ALL); -
set_error_handler() returning false
On Thu, 24 Jul 2003 13:34:56 +1000, Terence <tk.lists@fastmail.fm> wrote: Turn your error_reporting level up, and it will tell you. <?php...



Reply With Quote

