ID:               25153
 Updated by:       [EMAIL PROTECTED]
 Reported By:      barce at cyphgen dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Output Control
 Operating System: SuSE Linux 7.0 and FreeBSD 4.8
 PHP Version:      4.3.2
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

I suggest that you read the manual on commenting again.


Previous Comments:
------------------------------------------------------------------------

[2003-08-19 12:33:39] barce at cyphgen dot com

Description:
------------
While trying to write valid html 4.01, I commented out an XML tag
placed in an echo statement. This caused PHP to print out php code
instead of html.



Reproduce code:
---------------
<?php

# echo "<?xml version=\"1.0\"?> ";
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01
Transitional//EN\">\n";
echo "<html>\n";

?>

<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body>
test
</body>
</html>

Expected result:
----------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body>
test
</body>
</html>


Actual result:
--------------
 ";
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01
Transitional//EN\">\n";
echo "<html>\n";

?>

<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body>
test
</body>
</html>



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=25153&edit=1

Reply via email to