View Issue Details

IDProjectCategoryView StatusLast Update
0000557Xdebugpublic2010-04-04 14:17
Reportermike Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version2.1.0RC1 
Summary0000557: unwanted signs
Description

I'm using xdebug.dll with php5.3.2 in phpDesigner 7 and I'm using utf-8. If I debug a simple php code, I get unwanted signs in the output, just before the doctype tag. With xdebug.dll version 2.0.5 it's the same.

My example code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;>
<html xmlns="http://www.w3.org/1999/xhtml&quot; xml:lang="en" lang="en">

<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
</head>
<body>
<?php
/**

  • @author Michael Hollstein
  • @copyright 2010
    */
    $d = 3;
    echo 'D: ' . $d;
    ?>
    </body>
    </html>

My output is:

<!-- X-Powered-By: PHP/5.3.2
Set-Cookie: XDEBUG_SESSION=phpd; expires=Sat, 03-Apr-2010 07:35:33 GMT;
path=/
Content-type: text/html -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;>
<html xmlns="http://www.w3.org/1999/xhtml&quot; xml:lang="en" lang="en">

<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> -->
</head>
<body>
D: 3</body>
</html>

==> Please have a look at the signs before doctype...
In a Hex-Editor the signs are: EF00 BB00 BF00

TagsNo tags attached.
Operating SystemWindows XP SP2
PHP Version5.3.2

Activities

derick

2010-04-04 14:16

administrator   ~0001431

This has nothing to do with Xdebug. If you check the original source in your hx editor you will see the same. This is called a BOM which can be before any XML document. I don't know where the <!-- bit is coming from, but that's surely not something that Xdebug does.

Issue History

Date Modified Username Field Change
2010-04-04 13:46 mike New Issue
2010-04-04 13:46 mike Operating System => Windows XP SP2
2010-04-04 13:46 mike PHP Version => 5.3.2
2010-04-04 13:46 mike Xdebug Version => 2.1.0beta1
2010-04-04 14:16 derick Note Added: 0001431
2010-04-04 14:16 derick Status new => resolved
2010-04-04 14:16 derick Resolution open => no change required
2010-04-04 14:16 derick Assigned To => derick
2010-04-04 14:17 derick View Status private => public
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)