> Of course it is meaningful for PHP as well.
>

We're talking about the PHP language. Not the PHP engine. You're right that
the PHP engine needs to be capable of finding its processing instructions.
So it's capable of doing a little XML. Thus it needs to understand the
meaning of whitespace in XML.

However, that's the PHP engine doing XML syntax. Not processing PHP syntax.

It's defined in the XML spec that the end of the name of a Processing
Instruction is marked with a whitespace:

http://www.w3.org/TR/REC-xml/#sec-pi

There it states:

PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>'

S meaning Whitespace.

So, that whitespace is meaningfull for XML. Not for PHP. PHP couldn't care
less how processing instructions are defined in XML.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to