#21497 [Bgs]: include() of XML document fails
| From: | polone at townnews dot com | Date: | Tue, 07 Jan 2003 20:17:28 +0000 |
| Subject: | #21497 [Bgs]: include() of XML document fails | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29370@lists.php.net to get a copy of this message | ||
ID: 21497
User updated by: polone@townnews.com
Reported By: polone@townnews.com
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: RedHat Linux 6.2
PHP Version: 4.3.0
New Comment:
That does fix the problem, but enabling short open tags shouldn't
invalidate properly formatted processing instructions for something
other than PHP.
In addition, this cannot be altered or disabled by ini_set() from a PHP
script (perhaps a security risk?) at run-time.
Previous Comments:
------------------------------------------------------------------------
[2003-01-07 13:17:31] edink@php.net
Disable short_open_tags in your php.ini and the problem will go away.
------------------------------------------------------------------------
[2003-01-07 13:15:12] polone@townnews.com
When using the include(), include_once(), require(), or require_once()
functions, documents beginning with:
<?xml version="1.0"?>
fail to be loaded. I'm guessing this might have to do with PHP trying
to interpret the <?xml as <?php, causing a fatal error. Proper
operation should check for the processing instruction (PI) value of <?,
that is:
<? or <?php
maybe interpreted as PHP, but not,
<?some_other_text
at the very least, not:
<?xml
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21497&edit=1