Re: Discourage use of short tags

From: Date: Sat, 27 Apr 2002 01:41:28 +0000
Subject: Re: Discourage use of short tags
Groups: php.dev 
Request: Send a blank email to php-dev+get-83411@lists.php.net to get a copy of this message
php4@developersdesk.com wrote: > Addressed to: Yasuo Ohgaki <yohgaki@yahoo.co.jp> > php-dev@lists.php.net > > ** Reply to note from Yasuo Ohgaki <yohgaki@yahoo.co.jp> Sat, 27 Apr 2002 07:47:08 +0900 > >> >>I've changed basic-syntax.xml a little. The manual list short tag first, >>even if it recommends <?php tag. >> >>Anyway, I would like to add something like >> >><note> <para> Use of short tag is strongly discouraged. It not only >>non-portable and non-XML compliant, but also a obsolete feature. </para> >></note> >> >>There are too many hosting services that enable short tag by default. In >>many case, user cannot do anything.. >> >>Any comments? > > > -maxint! > > > IM(ns)HO There aren't enough hosting services that support short tags! > > If you don't like them don't use them, but don't force me to follow your > programming rules. Short tags have been available for a long time, and > work just fine, thank you. I understand individual's preference. As Rasmus mentioned, it is nothing wrong to enable short tag when user has full control. However, <? just not portable, so most users are better to choose portable way. <? and <?php does no have much difference. And convertion can be done automatically, if needed. Again, if one prefer to use short tags, one can enable it in php.ini. How about this one? <note> <para> Use of short tags is strongly discouraged. It is disabled by default from PHP 4.3.0. Short tags are not only non-portable, but also non-XML compliant. </para> </note> -- Yasuo Ohgaki __________________________________________________ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/

« previous php.dev (#83411) next »