ID: 16963 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: *General Issues Operating System: Linux PHP Version: 4.2.0 New Comment:
I agree that php's handling of this case is poor. However the user should take it up with the ISP. If they want to keep your business, they should try to make you happy. If they don't, then find a different ISP. Previous Comments: ------------------------------------------------------------------------ [2002-05-02 10:10:10] [EMAIL PROTECTED] Checking the chars behind the <? tag is not a feasible solution. <? is XML processing tag, and we simply don't know what kind of processers are on the earth. Portable formats are <?php echo '<?xml version="1.0"?>' ?> <?php echo '<?xml' ?> version="1.0"?> It doesn't look nice, but it's historical reason... ------------------------------------------------------------------------ [2002-05-02 10:07:56] [EMAIL PROTECTED] I know some workarounds to fix this little problem, but is this not a general problem? <?xml are signed by RFC and its not ok that the parse didnt check this. ------------------------------------------------------------------------ [2002-05-02 09:24:17] [EMAIL PROTECTED] You can change the first line to: <? echo '<?xml'; ?> version="1.0" encoding="iso-8859-1"?> ------------------------------------------------------------------------ [2002-05-02 09:20:21] [EMAIL PROTECTED] Derick, most public ISP didn't disable shortags. And i think its better to check the chars behind the <? tag. if none its look like php short tag. ------------------------------------------------------------------------ [2002-05-02 09:16:17] [EMAIL PROTECTED] Disable short tags. Nog a bug > bogus. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16963 -- Edit this bug report at http://bugs.php.net/?id=16963&edit=1