Re: short_open_tag & ini_set()

From: Date: Tue, 22 Oct 2002 05:24:37 +0000
Subject: Re: short_open_tag & ini_set()
References: 1 2 3 4 5 6 7  Groups: php.dev 
Request: Send a blank email to php-dev+get-89870@lists.php.net to get a copy of this message
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


« previous php.dev (#89870) next »