#25987 [Bgs]: php and xml tag confusion

2003-11-04 Thread tkwright_233 at hotmail dot com
 ID:   25987
 User updated by:  tkwright_233 at hotmail dot com
 Reported By:  tkwright_233 at hotmail dot com
 Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: *
 PHP Version:  *
 New Comment:

what just happened? it appears some comments were lost(about 2-4).
__

Anyway, it DOES know the diffrence of '?=' from '?'. 
so why can't it detect the diffrence of '?' from '?xml'?

And, according to my brain, and museum.php.net, the deafult opining tag
was changed from '?' to ?php' partially for this reason(and the
closing tag from '' to '?'), from v.2 to v.4 .


Previous Comments:


[2003-10-26 15:24:32] [EMAIL PROTECTED]

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.



[2003-10-25 15:18:05] [EMAIL PROTECTED]

Short tags = '?'. That matches '?php' as well as '?=' or '?xml'.



[2003-10-25 14:13:23] tkwright_233 at hotmail dot com

Description:

when an xml 'starting' tag is placed on an document, php confuses it
with its opining and closing tag.
it confuses its closing tag with xml end of the tag, and php confuses
the open tag for php with the start of the tag declaring an xml
document.

Parse error: parse error, unexpected T_STRING in
c:/apache/htdocs/xml.php on line 1

currently, the workaround is:
?php echo''.'?'.'x'.'m'.'l vers'.'ion=1'.'.'.'0'.'
en'.'codi'.'ng=UT'.'F-8'.''.'?'.''.\n;?



Reproduce code:
---
?xml version=1.0 encoding=UTF-8?

Expected result:

[no error],rest of page

Actual result:
--
Parse error: parse error, unexpected T_STRING in
c:/apache/htdocs/xml.php on line 1





-- 
Edit this bug report at http://bugs.php.net/?id=25987edit=1


#25987 [Bgs]: php and xml tag confusion

2003-11-01 Thread sniper
 ID:   25987
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tkwright_233 at hotmail dot com
 Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: *
 PHP Version:  *
 New Comment:

Because it's special? Now please don't add anymore comments into this
beaten up report.



Previous Comments:


[2003-10-31 15:33:36] tkwright_233 at hotmail dot com

I get what you mean.

So how come the php engene recognizes '?' from
'?='?

I know it can, otherwise '?$a_declared_variable?' would cause an
error (comparing to '?=$a_declared_variable?').



[2003-10-30 15:44:15] [EMAIL PROTECTED]

Becasue the first two characters are the same?



[2003-10-30 15:39:15] tkwright_233 at hotmail dot com

So why can't it recognize '?' from '?xml'



[2003-10-30 14:41:38] tkwright_233 at hotmail dot com

I have checked the manual, front-to-back, even memorized it.
I heve checked the bugs very throughly,
I am very 'good friends' with the 'how to report a bug' page.
but still have found nothing on the topic.

adding to the previous argument, the php engene recognizes '?' from
'?=', or else '?$a_declared_variable?' would cause an error.



[2003-10-26 15:24:32] [EMAIL PROTECTED]

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.



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=25987edit=1


#25987 [Bgs]: php and xml tag confusion

2003-10-31 Thread tkwright_233 at hotmail dot com
 ID:   25987
 User updated by:  tkwright_233 at hotmail dot com
 Reported By:  tkwright_233 at hotmail dot com
 Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: *
 PHP Version:  *
 New Comment:

I get what you mean.

So how come the php engene recognizes '?' from
'?='?

I know it can, otherwise '?$a_declared_variable?' would cause an
error (comparing to '?=$a_declared_variable?').


Previous Comments:


[2003-10-30 15:44:15] [EMAIL PROTECTED]

Becasue the first two characters are the same?



[2003-10-30 15:39:15] tkwright_233 at hotmail dot com

So why can't it recognize '?' from '?xml'



[2003-10-30 14:41:38] tkwright_233 at hotmail dot com

I have checked the manual, front-to-back, even memorized it.
I heve checked the bugs very throughly,
I am very 'good friends' with the 'how to report a bug' page.
but still have found nothing on the topic.

adding to the previous argument, the php engene recognizes '?' from
'?=', or else '?$a_declared_variable?' would cause an error.



[2003-10-26 15:24:32] [EMAIL PROTECTED]

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.



[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.



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=25987edit=1


#25987 [Bgs]: php and xml tag confusion

2003-10-30 Thread tkwright_233 at hotmail dot com
 ID:   25987
 User updated by:  tkwright_233 at hotmail dot com
 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:

I have checked the manual, front-to-back, even memorized it.
I heve checked the bugs very throughly,
I am very 'good friends' with the 'how to report a bug' page.
but still have found nothing on the topic.

adding to the previous argument, the php engene recognizes '?' from
'?=', or else '?$a_declared_variable?' would cause an error.


Previous Comments:


[2003-10-26 15:24:32] [EMAIL PROTECTED]

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.



[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-25 15:18:05] [EMAIL PROTECTED]

Short tags = '?'. That matches '?php' as well as '?=' or '?xml'.



[2003-10-25 14:13:23] tkwright_233 at hotmail dot com

Description:

when an xml 'starting' tag is placed on an document, php confuses it
with its opining and closing tag.
it confuses its closing tag with xml end of the tag, and php confuses
the open tag for php with the start of the tag declaring an xml
document.

Parse error: parse error, unexpected T_STRING in
c:/apache/htdocs/xml.php on line 1

currently, the workaround is:
?php echo''.'?'.'x'.'m'.'l vers'.'ion=1'.'.'.'0'.'
en'.'codi'.'ng=UT'.'F-8'.''.'?'.''.\n;?



Reproduce code:
---
?xml version=1.0 encoding=UTF-8?

Expected result:

[no error],rest of page

Actual result:
--
Parse error: parse error, unexpected T_STRING in
c:/apache/htdocs/xml.php on line 1





-- 
Edit this bug report at http://bugs.php.net/?id=25987edit=1


#25987 [Bgs]: php and xml tag confusion

2003-10-30 Thread tkwright_233 at hotmail dot com
 ID:   25987
 User updated by:  tkwright_233 at hotmail dot com
 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:

So why can't it recognize '?' from '?xml'


Previous Comments:


[2003-10-30 14:41:38] tkwright_233 at hotmail dot com

I have checked the manual, front-to-back, even memorized it.
I heve checked the bugs very throughly,
I am very 'good friends' with the 'how to report a bug' page.
but still have found nothing on the topic.

adding to the previous argument, the php engene recognizes '?' from
'?=', or else '?$a_declared_variable?' would cause an error.



[2003-10-26 15:24:32] [EMAIL PROTECTED]

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.



[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-25 15:18:05] [EMAIL PROTECTED]

Short tags = '?'. That matches '?php' as well as '?=' or '?xml'.



[2003-10-25 14:13:23] tkwright_233 at hotmail dot com

Description:

when an xml 'starting' tag is placed on an document, php confuses it
with its opining and closing tag.
it confuses its closing tag with xml end of the tag, and php confuses
the open tag for php with the start of the tag declaring an xml
document.

Parse error: parse error, unexpected T_STRING in
c:/apache/htdocs/xml.php on line 1

currently, the workaround is:
?php echo''.'?'.'x'.'m'.'l vers'.'ion=1'.'.'.'0'.'
en'.'codi'.'ng=UT'.'F-8'.''.'?'.''.\n;?



Reproduce code:
---
?xml version=1.0 encoding=UTF-8?

Expected result:

[no error],rest of page

Actual result:
--
Parse error: parse error, unexpected T_STRING in
c:/apache/htdocs/xml.php on line 1





-- 
Edit this bug report at http://bugs.php.net/?id=25987edit=1


#25987 [Bgs]: php and xml tag confusion

2003-10-30 Thread helly
 ID:   25987
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tkwright_233 at hotmail dot com
 Status:   Bogus
 Bug Type: Scripting Engine problem
-Operating System: windows 98
+Operating System: *
-PHP Version:  4.3.3
+PHP Version:  *
 New Comment:

Becasue the first two characters are the same?


Previous Comments:


[2003-10-30 15:39:15] tkwright_233 at hotmail dot com

So why can't it recognize '?' from '?xml'



[2003-10-30 14:41:38] tkwright_233 at hotmail dot com

I have checked the manual, front-to-back, even memorized it.
I heve checked the bugs very throughly,
I am very 'good friends' with the 'how to report a bug' page.
but still have found nothing on the topic.

adding to the previous argument, the php engene recognizes '?' from
'?=', or else '?$a_declared_variable?' would cause an error.



[2003-10-26 15:24:32] [EMAIL PROTECTED]

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.



[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-25 15:18:05] [EMAIL PROTECTED]

Short tags = '?'. That matches '?php' as well as '?=' or '?xml'.



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=25987edit=1


#25987 [Bgs]: php and xml tag confusion

2003-10-26 Thread gschlossnagle
 ID:   25987
 Updated by:   [EMAIL PROTECTED]
 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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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=25987edit=1


#25987 [Bgs]: php and xml tag confusion

2003-10-26 Thread tkwright_233 at hotmail dot com
 ID:   25987
 User updated by:  tkwright_233 at hotmail dot com
 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:

exactly.
so the syntax engine should decide if it really is PHP or if is another
tag, like XML.


Previous Comments:


[2003-10-25 15:18:05] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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.



[2003-10-25 14:18:22] tkwright_233 at hotmail dot com

p.s. Ive got apache 1.3.27



[2003-10-25 14:13:23] tkwright_233 at hotmail dot com

Description:

when an xml 'starting' tag is placed on an document, php confuses it
with its opining and closing tag.
it confuses its closing tag with xml end of the tag, and php confuses
the open tag for php with the start of the tag declaring an xml
document.

Parse error: parse error, unexpected T_STRING in
c:/apache/htdocs/xml.php on line 1

currently, the workaround is:
?php echo''.'?'.'x'.'m'.'l vers'.'ion=1'.'.'.'0'.'
en'.'codi'.'ng=UT'.'F-8'.''.'?'.''.\n;?



Reproduce code:
---
?xml version=1.0 encoding=UTF-8?

Expected result:

[no error],rest of page

Actual result:
--
Parse error: parse error, unexpected T_STRING in
c:/apache/htdocs/xml.php on line 1





-- 
Edit this bug report at http://bugs.php.net/?id=25987edit=1


#25987 [Bgs]: php and xml tag confusion

2003-10-26 Thread tkwright_233 at hotmail dot com
 ID:   25987
 User updated by:  tkwright_233 at hotmail dot com
 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:

abye there could be another variable in the php.ini, space required
after tag start.


Previous Comments:


[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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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.



[2003-10-25 14:18:22] tkwright_233 at hotmail dot com

p.s. Ive got apache 1.3.27



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=25987edit=1


#25987 [Bgs]: php and xml tag confusion

2003-10-25 Thread tkwright_233 at hotmail dot com
 ID:   25987
 User updated by:  tkwright_233 at hotmail dot com
 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:

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.


Previous Comments:


[2003-10-25 14:19:46] [EMAIL PROTECTED]

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.



[2003-10-25 14:18:22] tkwright_233 at hotmail dot com

p.s. Ive got apache 1.3.27



[2003-10-25 14:13:23] tkwright_233 at hotmail dot com

Description:

when an xml 'starting' tag is placed on an document, php confuses it
with its opining and closing tag.
it confuses its closing tag with xml end of the tag, and php confuses
the open tag for php with the start of the tag declaring an xml
document.

Parse error: parse error, unexpected T_STRING in
c:/apache/htdocs/xml.php on line 1

currently, the workaround is:
?php echo''.'?'.'x'.'m'.'l vers'.'ion=1'.'.'.'0'.'
en'.'codi'.'ng=UT'.'F-8'.''.'?'.''.\n;?



Reproduce code:
---
?xml version=1.0 encoding=UTF-8?

Expected result:

[no error],rest of page

Actual result:
--
Parse error: parse error, unexpected T_STRING in
c:/apache/htdocs/xml.php on line 1





-- 
Edit this bug report at http://bugs.php.net/?id=25987edit=1


#25987 [Bgs]: php and xml tag confusion

2003-10-25 Thread helly
 ID:   25987
 Updated by:   [EMAIL PROTECTED]
 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:

Short tags = '?'. That matches '?php' as well as '?=' or '?xml'.


Previous Comments:


[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] [EMAIL PROTECTED]

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.



[2003-10-25 14:18:22] tkwright_233 at hotmail dot com

p.s. Ive got apache 1.3.27



[2003-10-25 14:13:23] tkwright_233 at hotmail dot com

Description:

when an xml 'starting' tag is placed on an document, php confuses it
with its opining and closing tag.
it confuses its closing tag with xml end of the tag, and php confuses
the open tag for php with the start of the tag declaring an xml
document.

Parse error: parse error, unexpected T_STRING in
c:/apache/htdocs/xml.php on line 1

currently, the workaround is:
?php echo''.'?'.'x'.'m'.'l vers'.'ion=1'.'.'.'0'.'
en'.'codi'.'ng=UT'.'F-8'.''.'?'.''.\n;?



Reproduce code:
---
?xml version=1.0 encoding=UTF-8?

Expected result:

[no error],rest of page

Actual result:
--
Parse error: parse error, unexpected T_STRING in
c:/apache/htdocs/xml.php on line 1





-- 
Edit this bug report at http://bugs.php.net/?id=25987edit=1