[xdebug-dev] Bug 0000203: PHP errors with html content processed incorrectly

From: <xdebug-dev[@]lists.xdebug.org>
Date: Tue, 3 Oct 2006 21:08:12 +0200

The following bug has been CLOSED
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000203
======================================================================
Reporter: Soul--Reaver
Handler: derick
======================================================================
Project: Xdebug
Bug ID: 203
Category: Usage problems
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Operating System: Windows XP SP2
PHP Version: 5.1.5
Xdebug Version: 2.0.0beta6
======================================================================
Date Submitted: 2006-09-30 15:27 CEST
Last Modified: 2006-10-03 21:08 CEST
======================================================================
Summary: PHP errors with html content processed incorrectly
Description:
I'm using Apache/2.2.3 (Win32) PHP/5.1.6 Server with Xdebug 2.0.0beta6.

When i don't load xdebug an error in php looks like this:
Warning: gzuncompress() [function.gzuncompress.php]: data error in
H:\webserver\htdocs\default\SLG\SLG Comms\includes\classes.inc.php on line
583
With "function.gzuncompress.php" being a hyperlink to the php manual on
the php.net website.

The same error with xdebug enabled and loaded:
Warning: gzuncompress() [<a
href=&apos;http://www.php.net/manual/en/function.gzuncompress.php&apos;>function.gzuncompress.php</a>]:
data error in H:\webserver\htdocs\default\SLG\SLG
Comms\includes\classes.inc.php on line 583
Followed by the call stack.

As you can see the hyperlink in the error is not processed correctly.
======================================================================

----------------------------------------------------------------------
 derick - 2006-10-02 20:40 CEST
----------------------------------------------------------------------
This doesn't make sense, because if Xdebug is loaded you should not even
get the standard warnings, but something similar to
http://xdebug.org/images/xdebug_ss1.jpg

How do you load Xdebug? Can you provide a link to your phpinfo() page
perhaps?

----------------------------------------------------------------------
 derick - 2006-10-02 20:40 CEST
----------------------------------------------------------------------
Hmm, I wanted to set it to feedback. Sorry for closing it.

----------------------------------------------------------------------
 Soul--Reaver - 2006-10-02 21:34 CEST
----------------------------------------------------------------------
here's the phpinfo page. I added the a piece of code to reproduce the error
at the top. Also added the same error you generate in the image in your
bugnote (at the bottom though because of the fatal error it generates).

<?php
gzuncompress('blaat');

phpinfo();

typo();
?>

http://www.pz.homedns.org:4714/phpinfo.php

Here are the php.ini lines concerning xdebug

[xdebug]
zend_extension_ts="H:\webserver\php\php5\ext\php_xdebug-5.1.2-2.0.0beta6.dll"

xdebug.collect_includes = On
xdebug.trace_output_dir = h:\webserver\tmp

If you need anything else let me know

edited on: 2006-10-02 21:24

edited on: 2006-10-02 21:28

edited on: 2006-10-02 21:33

edited on: 2006-10-02 21:33

edited on: 2006-10-02 21:34

----------------------------------------------------------------------
 Soul--Reaver - 2006-10-02 22:23 CEST
----------------------------------------------------------------------
Here's another example

http://www.pz.homedns.org:4714/xdebug-bug_id-0000203.php

contains:
<?php
gzuncompress('blaat');

xdebug_disable();
echo 'xdebug disabled.';

gzuncompress('blaat');
?>

----------------------------------------------------------------------
 derick - 2006-10-03 13:46 CEST
----------------------------------------------------------------------
Okay, I see the problem now. I'll look if I can fix it.

----------------------------------------------------------------------
 derick - 2006-10-03 21:08 CEST
----------------------------------------------------------------------
Fixed in CVS. Thanks for your report!

Bug History
Date Modified Username Field Change
======================================================================
2006-09-30 15:27Soul--Reaver New Bug
2006-09-30 15:27Soul--Reaver Bug Monitored: Soul--Reaver
2006-10-02 20:40derick Bugnote Added: 0000459
2006-10-02 20:40derick Assigned To => derick
2006-10-02 20:40derick Resolution open => unable to duplicate
2006-10-02 20:40derick Status new => resolved
2006-10-02 20:40derick Bugnote Added: 0000460
2006-10-02 20:40derick Resolution unable to duplicate => reopened
2006-10-02 20:40derick Status resolved => feedback
2006-10-02 21:21Soul--Reaver Bugnote Added: 0000461
2006-10-02 21:24Soul--Reaver Bugnote Edited: 0000461
2006-10-02 21:28Soul--Reaver Bugnote Edited: 0000461
2006-10-02 21:33Soul--Reaver Bugnote Edited: 0000461
2006-10-02 21:33Soul--Reaver Bugnote Edited: 0000461
2006-10-02 21:34Soul--Reaver Bugnote Edited: 0000461
2006-10-02 22:23Soul--Reaver Bugnote Added: 0000462
2006-10-03 13:46derick Bugnote Added: 0000463
2006-10-03 13:46derick Status feedback => confirmed
2006-10-03 21:08derick Bugnote Added: 0000466
2006-10-03 21:08derick Status confirmed => closed
======================================================================
Received on Tue Oct 03 2006 - 21:08:16 BST

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