View Issue Details

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

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

<?php

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

echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n

<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">

<head>

<title>Xdebug bug</title>

</head>

<body>

",

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

"

</body>

</html>
";

?>

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

Activities

altstadt

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.

derick

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).