View Issue Details

IDProjectCategoryView StatusLast Update
0000253XdebugUncategorizedpublic2007-04-24 14:06
Reporterstanv Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionunable to reproduce 
Summary0000253: 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);
?>

TagsNo tags attached.
Operating System
PHP Version5.2.1

Activities

derick

2007-04-23 15:24

administrator   ~0000591

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 15:29

reporter   ~0000592

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 14:06

administrator   ~0000594

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.