Re: [PHP-DEV] short_open_tag ini_set()

2002-10-21 Thread Terence Kearns
Yes, but this doesn't solve the problem of whitespace before the 
declaration.

the XML spec says that the declaration has to appear on the first line 
with no whitespace before it.

developers will wonder why XML parsers don't accept their PHP script if 
they accidently put whitespace before ?php or output something before 
the declaration is sent.

This seems to be one of the key issues that people seem to be glossing over!


Richard Heyes wrote:

Since there are no drawbacks at all to the ?xml detection, and since it
does cover a great deal of the problem (taking into account the very
limited scope of the problem), I don't see a good reason not to add
it.  Rasmus put it very well in one of his recent letters - PHP is not a
purists' language, complex problem sometimes require 'ugly' solutions...
   


Something else to aid the writing of portable scripts is to allow the
setting
of short_open_tag from the script with ini_set(), for either subsequent
code,
or subsequently included files.

--
Richard Heyes
V-webmail - http://www.v-webmail.co.uk


 



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




Re: [PHP-DEV] short_open_tag ini_set()

2002-10-18 Thread Richard Heyes
 Since there are no drawbacks at all to the ?xml detection, and since it
 does cover a great deal of the problem (taking into account the very
 limited scope of the problem), I don't see a good reason not to add
 it.  Rasmus put it very well in one of his recent letters - PHP is not a
 purists' language, complex problem sometimes require 'ugly' solutions...

Something else to aid the writing of portable scripts is to allow the
setting
of short_open_tag from the script with ini_set(), for either subsequent
code,
or subsequently included files.

--
Richard Heyes
V-webmail - http://www.v-webmail.co.uk


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