php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41629 PHP assumes <?xml ?> tags to be PHP opening tags and attempts to parse them
Submitted: 2007-06-07 17:55 UTC Modified: 2007-06-07 18:01 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: nathan dot m at adelphia dot net Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.4.7 OS: Windows XP Pro, Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nathan dot m at adelphia dot net
New email:
PHP Version: OS:

 

 [2007-06-07 17:55 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-07 18:01 UTC] johannes@php.net
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

.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 04:00:01 2026 UTC