On October 16, 2002 10:18 pm, Yasuo Ohgaki wrote: > Ilia A. wrote: > > Since the general consensus by the developers is not to remove the > > short_tags or even disable them. Perhaps we should consider alternate > > solutions to this problem. Given the buzzword popularity of XML and its > > slowly growing popularity among website designers (XHTML) this issue is > > likely to come up in the future yet again. > > The solution I would like to offer, is a patch that adds special handling > > for <?xml. Thus preventing the language parser from attempting to parse > > data inside <?xml as PHP source. > > I think it's reasonable patch, but "<?" is XML Processing Instruction > tag... > > We never know how many processing tags will be in the future. > We don't know if there will be xml processor that processes php > tag or not. > Therefore, user should turn short tag off by themselves > if the want to use XML, or echo "<?xml ......>" at the beginning > of output.
Yes sure, but as these discussions, which are starting to appear with ever increasing frequency that is simply not the case. There are numerous reasons for this many of which have been covered in various discussion on this topic. > > IMO, disabling short tag in php.ini-recommended is ok in the > future. I know Zeev don't like it and I understand the reasoning. :) Maybe I am wrong, but judging from the feedback given by various developers this is unlikely to happen even in PHP 5.0. Thus, I think we must consider how to address this problem via other means. Unless we can solve this issue, then we return to this discussion again and again. > Isn't BIG caution for short_open_tag=Off while having short_open_tag=On > enough for now? Something like; Nope, please consider a hosting enviroment where an average user does not even have access to the php.ini file. In fact, most ISP won't make user's life difficult by forcing <?php because they know that'll lead to waste of their time and money since they'll be forced to deal with user complains about why their PHP scripts are not working. Even people with the ability to modify this file will not necessarily edit it and only do so if they need to change an option not changeable via other means. Ilia -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php