#25987 [Bgs]: php and xml tag confusion
| From: | gschlossnagle@php.net | Date: | Sun, 26 Oct 2003 20:24:33 +0000 |
| Subject: | #25987 [Bgs]: php and xml tag confusion | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-49490@lists.php.net to get a copy of this message | ||
ID: 25987
Updated by: gschlossnagle@php.net
Reported By: tkwright_233 at hotmail dot com
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: windows 98
PHP Version: 4.3.3
New Comment:
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
It does recognize the difference, if you disable
short_tags, which you should for exactly this reason.
Previous Comments:
------------------------------------------------------------------------
[2003-10-26 14:20:58] tkwright_233 at hotmail dot com
abye there could be another variable in the php.ini, space required
after tag start.
------------------------------------------------------------------------
[2003-10-26 14:18:00] tkwright_233 at hotmail dot com
exactly.
so the syntax engine should decide if it really is PHP or if is another
tag, like XML.
------------------------------------------------------------------------
[2003-10-25 15:18:05] helly@php.net
Short tags = '<?'. That matches '<?php' as well as '<?=' or
'<?xml'.
------------------------------------------------------------------------
[2003-10-25 14:34:29] tkwright_233 at hotmail dot com
you do know the tag is in the HTML, not within a php tags?
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
5 <html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
6 <head>
...
and, yes, short tags are enabled in my verson of php.
------------------------------------------------------------------------
[2003-10-25 14:19:46] helly@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
Turn Off ShortTags and \'<?xml will work. And after reading xml docs
you will know why anywhere in a document \'?>\' will end php or any
other xml processing instruction.
------------------------------------------------------------------------
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/25987
--
Edit this bug report at http://bugs.php.net/?id=25987&edit=1