ID: 21497 Comment by: mike at sydel dot net Reported By: polone at townnews dot com Status: Bogus Bug Type: Scripting Engine problem Operating System: RedHat Linux 6.2 PHP Version: 4.3.0 New Comment:
I am also experiencing this problem. Indeed, polone is right that disabling short tags shouldn't be the solution. I say this because a lot of people are already using <?=$var?> to simply echo variables. If they for one case also encountered the same problem as we have, then he has to rewrite the code where <?= is located. Besides, short tags is a feature that helps a lot. Previous Comments: ------------------------------------------------------------------------ [2003-01-07 14:17:17] polone at townnews dot com 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. ------------------------------------------------------------------------ [2003-01-07 13:17:31] [EMAIL PROTECTED] Disable short_open_tags in your php.ini and the problem will go away. ------------------------------------------------------------------------ [2003-01-07 13:15:12] polone at townnews dot 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