#32124 [Opn->Bgs]: echo sometimes strips double-quotes from tags
| From: | tony2001@php.net | Date: | Sun, 27 Feb 2005 11:15:36 +0000 |
| Subject: | #32124 [Opn->Bgs]: echo sometimes strips double-quotes from tags | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-74623@lists.php.net to get a copy of this message | ||
ID: 32124
Updated by: tony2001@php.net
Reported By: daniel dot kauffman at rocksolidsolutions dot org
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: *
PHP Version: 4CVS-2005-02-27 (stable)
New Comment:
Use "View source" and see the expected results.
That's your browser's problem.
Previous Comments:
------------------------------------------------------------------------
[2005-02-27 11:27:01] daniel dot kauffman at rocksolidsolutions dot org
PHP is running as Apache module in each case.
------------------------------------------------------------------------
[2005-02-27 11:19:06] daniel dot kauffman at rocksolidsolutions dot org
Description:
------------
Echo sometimes strips double-quotes from tags.
It seems impossible to echo the following string literal:
<a " >
Tested on localhost with:
PHP 4.3.11-dev as CGI with Apache 1.3.33 on Windows 98
PHP 4.3.10 as CGI with Apache 1.3.33 on Windows 98
Tested remotely with:
PHP 4.3.10 as CGI with Apache 1.3.33 on Linux kernal 2.4.28
Reproduce code:
---------------
# Echo strips double-quotes from these strings... (unexpected
behaviour)
echo '<a " >';
echo "<a \" >";
# But does not strip double-quotes from these strings... (exepected
behaviour)
echo '< " >';
echo "< \" >";
echo '<a a="" >';
echo "<a a=\"\" >";
# Character references are output as character references, not as
literal characters... (expected behaviour)
echo '< " >';
echo '< " >';
Expected result:
----------------
<a " ><a " >< " >< " ><a a="" ><a
a="" >< " >< " >
Actual result:
--------------
<a ><a >< " >< " ><a a="" ><a a=""
>< " >< " >
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32124&edit=1