#41629 [Opn->Bgs]: PHP assumes <?xml ?> tags to be PHP opening tags and attempts to parse them
| From: | johannes@php.net | Date: | Thu, 07 Jun 2007 18:01:01 +0000 |
| Subject: | #41629 [Opn->Bgs]: PHP assumes <?xml ?> tags to be PHP opening tags and attempts to parse them | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-113555@lists.php.net to get a copy of this message | ||
ID: 41629
Updated by: johannes@php.net
Reported By: nathan dot m at adelphia dot net
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Windows XP Pro, Linux
PHP Version: 4.4.7
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
.
Previous Comments:
------------------------------------------------------------------------
[2007-06-07 17:55:11] nathan dot m at adelphia dot net
Description:
------------
When short opening tags for PHP(<? and ?>) are enabled, php mistakenly
attempts to parse <?xml ?> tags. I've tested this on multiple servers.
Reproduce code:
---------------
<?xml version="1.0" encoding="iso-8859-1"?>
Expected result:
----------------
The page displayed correctly.
Actual result:
--------------
Parse error: parse error, unexpected T_STRING in /path/to/index.php on
line 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41629&edit=1