> -----Original Message----- > From: Pierre Joye [mailto:[EMAIL PROTECTED] > Sent: Friday, March 21, 2008 8:30 PM > To: Rasmus Lerdorf > Cc: Elizabeth M Smith; internals@lists.php.net > Subject: Re: [PHP-DEV] short_open_tag > > Hi Rasmus, > > On Sat, Mar 22, 2008 at 1:20 AM, Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > > > Will actually do about the same thing in the sense that the top-level > > script can run with short_open_tag turned off and the main.php script > > can run with short_open_tag enabled. The first version requires that > > you configure your Apache to enable short_open_tag for the templates/ > > directory, while the second lets you do it from the PHP level. The > > first suffers from being extremely slow and it isn't obvious that > > scripts in templates/ operate under different rules. The second is much > > faster and it is more obvious what is happening. > > as a conclusion from my point of view, I don't think it's possible to > bring anything new to this dicsussion: > > -1 for the patch (revert) > +1 to actually deprecate short tags > +1 to remove them in HEAD > > That's not asked but let clear this problem once and for all. > > Cheers, > -- > Pierre > http://blog.thepimp.net | http://www.libgd.org
Hi, I'm new to the internals, but I've been reading you for months... now, let me ask, Are there any security issues with short tags? Is it really harder for the interpreter to have them enabled? Is the short tags parsing code too hard to maintain? Do they create a performance hit? Do they create bad habits, why? Does the patch for ini_set create a performance issue? What ACTUAL situation makes you hate short tags? What code are you using to do what such that you find short tags being evil? Isn't it that you just don't like them, or don't like reading them in PHP code? I personally hate <? ?>, but I like and use <?= ?>, it's just much more readable and concise than <?php echo ... ?>. What if the parser would ignore <?xml, or <?whatever except <?php and <?=. I don't know you guys, but every templating system I've had to deal with is using them and every MVC framework out there is using short tags for the views. And they only represent an issue if you have some XML code you send through the PHP parser, and you can always use a global/per-dir setting if you just don't like them. +1 for the patch (if it doesn't create a performance or maintainability issue) +1 to keep short tags into PHP (deprecate them if you want, but only remove them in PHP 7 and provide a suitable alternative) Regards, Rob Andrés Robinet | Lead Developer | BESTPLACE CORPORATION Email: [EMAIL PROTECTED] | MSN Chat: [EMAIL PROTECTED] | SKYPE: bestplace | Web: bestplace.biz | Web: seo-diy.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php