View Issue Details

IDProjectCategoryView StatusLast Update
0000086Xdebugpublic2004-08-06 07:59
Reporteraltstadt Assigned To 
Status closedResolutionopen 
Summary0000086: xdebug produces output that is not xhtml 1.1 valid

While testing a PHP module, I provided incorrect input to a function which caused a dump. The information dumped was not formatted correctly, missing a </td> tag. Since I was using Firefox 0.9.1 as a browser, it choked on the generated xhtml and displayed a page that said:

XML Parsing Error: mismatched tag. Expected: </td>. Location: http://devel/xdebug_bug.php Line Number 22, Column 3:</table> --^

A simple PHP script to show the problem follows in the Additional Information section.

Additional Information


header("Content-Type: application/xhtml+xml; charset=UTF-8");

echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"\&quot;>\n

<html xmlns=\"\&quot; xml:lang=\"en\">


&lt;title>Xdebug bug&lt;/title>




// this will cause a dump which is not formatted properly
strstr("haystack", ""),





TagsNo tags attached.
Operating SystemGentoo Linux at current emerge system/world
PHP Version4.3.8-dev



2004-08-06 06:21

reporter   ~0000176

Sorry, I should have mentioned that the browser is happy if the page is served up with:

header("Content-Type: text/html; charset=UTF-8");

although the xhtml is still broken. It's just that the browser is more forgiving.


2004-08-06 07:59

administrator   ~0000178

Fixed in the 1.3 branch of Xdebug (XDEBUG_1_3). This was already fixed for Xdebug 2.0-dev (HEAD).

Issue History

Date Modified Username Field Change
2004-08-06 05:08 altstadt New Issue
2004-08-06 06:21 altstadt Note Added: 0000176
2004-08-06 07:59 derick Status new => closed
2004-08-06 07:59 derick Note Added: 0000178
2016-07-31 12:35 derick Category Debug client (console) => debugclient (debugging tool)
2016-07-31 12:35 derick Category debugclient (debugging tool) => (No Category)