[xdebug-dev] Bug 0000253: XDebug causes all error log messages to be trimmed at 1024 bytes, irrespective of "log_errors_max_len"

From: <noreply[@]lists.xdebug.org>
Date: Tue, 24 Apr 2007 15:06:30 +0200

The following bug has been RESOLVED.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000253
======================================================================
Reporter: stanv
Handler: derick
======================================================================
Project: Xdebug
Bug ID: 253
Category: Usage problems
Reproducibility: always
Severity: major
Priority: normal
Status: resolved
Operating System:
PHP Version: 5.2.1
Xdebug Version: 2.0.0rc3
Resolution: unable to duplicate
======================================================================
Date Submitted: 2007-04-10 16:16 CEST
Last Modified: 2007-04-24 15:06 CEST
======================================================================
Summary: XDebug causes all error log messages to be trimmed at 1024 bytes, irrespective of "log_errors_max_len"
Description:
In the following code, the trace will be clipped at 1024 mark when xdebug
is on, and will behave properly if xdebug is disabled in php.ini (no
clipping):

<?php
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors',0);
ini_set('log_errors',1);
ini_set('log_errors_max_len','0');
ini_set('html_errors',0);
ini_set('error_log','c:\log.txt');

function deepTrace($a, $b, $c) {
        if ($c < 50) {deepTrace($a, $b, $c+1);} else {throw new
Exception('Example exception that together with the trace is over 1024
bytes.');}
}
deepTrace('example','function',0);
?>
======================================================================

----------------------------------------------------------------------
 derick - 2007-04-23 16:24 CEST
----------------------------------------------------------------------
I can't reproduce it - it works just fine here with apache 1.3.31 and PHP
5.2.2dev and the latest Xdebug from CVS.

----------------------------------------------------------------------
 stanv - 2007-04-23 16:29 CEST
----------------------------------------------------------------------
Derick, are you testing on windows? I mentioned I think in the bug this
happens on Windows XP SP2 (and on Apache 2.2 in fact, I don't know if the
Apache version matters).

----------------------------------------------------------------------
 derick - 2007-04-24 15:06 CEST
----------------------------------------------------------------------
Works fine for me on Windows 2k with Apache 1.3.29 as well - and there is
no reason why things should be different here anyway.

Bug History
Date Modified Username Field Change
======================================================================
2007-04-10 16:16stanv New Bug
2007-04-10 16:16stanv Bug Monitored: stanv
2007-04-23 16:24derick Bugnote Added: 0000591
2007-04-23 16:24derick Assigned To => derick
2007-04-23 16:24derick Resolution open => unable to duplicate
2007-04-23 16:24derick Status new => resolved
2007-04-23 16:29stanv Bugnote Added: 0000592
2007-04-23 16:29stanv Resolution unable to duplicate => reopened
2007-04-23 16:29stanv Status resolved => feedback
2007-04-24 15:06derick Bugnote Added: 0000594
2007-04-24 15:06derick Resolution reopened => unable to duplicate
2007-04-24 15:06derick Status feedback => resolved
======================================================================
Received on Tue Apr 24 2007 - 15:06:34 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST