#21497 [Opn->Bgs]: include() of XML document fails

From: Date: Tue, 07 Jan 2003 19:17:44 +0000
Subject: #21497 [Opn->Bgs]: include() of XML document fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-29357@lists.php.net to get a copy of this message
ID: 21497 Updated by: edink@php.net Reported By: polone@townnews.com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: RedHat Linux 6.2 PHP Version: 4.3.0 New Comment: Disable short_open_tags in your php.ini and the problem will go away. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#29357) next »