#25987 [Opn->Bgs]: php and xml tag confusion
| From: | helly@php.net | Date: | Sat, 25 Oct 2003 18:19:46 +0000 |
| Subject: | #25987 [Opn->Bgs]: php and xml tag confusion | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-49467@lists.php.net to get a copy of this message | ||
ID: 25987
Updated by: helly@php.net
Reported By: tkwright_233 at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: windows 98
PHP Version: 4.3.3
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
Turn Off ShortTags and '<?xml will work. And after reading xml docs you
will know why anywhere in a document '?>' will end php or any other xml
processing instruction.
Previous Comments:
------------------------------------------------------------------------
[2003-10-25 14:18:22] tkwright_233 at hotmail dot com
p.s. Ive got apache 1.3.27
------------------------------------------------------------------------
[2003-10-25 14:13:23] tkwright_233 at hotmail dot com
Description:
------------
when an xml 'starting' tag is placed on an document, php confuses it
with its opining and closing tag.
it confuses its closing tag with xml end of the tag, and php confuses
the open tag for php with the start of the tag declaring an xml
document.
Parse error: parse error, unexpected T_STRING in
c:/apache/htdocs/xml.php on line 1
currently, the workaround is:
<?php echo'<'.'?'.'x'.'m'.'l
vers'.'ion="1'.'.'.'0'.'"
en'.'codi'.'ng="UT'.'F-8'.'"'.'?'.'>'."\n";?>
Reproduce code:
---------------
<?xml version="1.0" encoding="UTF-8"?>
Expected result:
----------------
[no error],rest of page
Actual result:
--------------
Parse error: parse error, unexpected T_STRING in
c:/apache/htdocs/xml.php on line 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25987&edit=1