Quick survery: short_open_tag support on or off by default?

General discussion forum for the Zend Server
Post Reply

Should Zend Server have short_open_tag 'On' or 'Off' by default?

On
5
24%
Off
16
76%
 
Total votes: 21

shahar
Posts: 244
Joined: Mon Oct 06, 2008 12:37 pm
Location: Israel
Contact:

Quick survery: short_open_tag support on or off by default?

Post by shahar » Mon Jan 26, 2009 5:47 pm

Hi all,

We are having an internal discussion on whether or not to enable PHP's short_open_tag by default in Zend Server - hopefully, some of you might have an opinion on that.

Currently, it is off - that means you cannot use short PHP opening tags such as <? and <?= in your code, unless you enable it. There is a lot of code out there that requires short_open_tag to be on.

On the other hand, many believe having short_open_tag enabled is a bad practice.

What is your opinion? If you vote, please, also comment and explain why you believe so.

Let the flame wars begin ;)

Shahar.

mfacenet
Posts: 9
Joined: Sat Jan 17, 2009 7:33 pm
Location: Nashville, TN
Contact:

Re: Quick survery: short_open_tag support on or off by default?

Post by mfacenet » Mon Jan 26, 2009 5:53 pm

**Dons the flame retardant suit**

I personally believe that a default configuration should reflect best practices, leave it off and if the development team is having to support legacy code they should already be aware of this problem

ddt
Posts: 6
Joined: Tue Jan 20, 2009 8:00 pm
Location: San Jose

Re: Quick survery: short_open_tag support on or off by default?

Post by ddt » Mon Jan 26, 2009 10:04 pm

I think that the purpose of the default configuration is not to enforce particular practice but to have people start using PHP and running their applications with maximum ease and maximum success rate. Each roadblock on this way, even with best intentions in mind, only makes it harder for people to use it.

firespade
Posts: 7
Joined: Wed Jan 14, 2009 4:00 pm
Location: Charleston, SC USA
Contact:

Re: Quick survery: short_open_tag support on or off by default?

Post by firespade » Tue Jan 27, 2009 3:13 pm

ddt wrote:I think that the purpose of the default configuration is not to enforce particular practice but to have people start using PHP and running their applications with maximum ease and maximum success rate. Each roadblock on this way, even with best intentions in mind, only makes it harder for people to use it.
Exactly. I think it should be left to the developers preference whether or not to enable this option. I personally use it however it isn't in best practice to release code formatted with short tags, that's just how it is.

jeandnd
Posts: 3
Joined: Wed Jan 21, 2009 6:24 pm
Location: Genova, Italy

Re: Quick survery: short_open_tag support on or off by default?

Post by jeandnd » Thu Jan 29, 2009 1:12 pm

Probably is better to consider each release individually... in community release, i think ti's better to let it on: many user would be neophytes (as i am) and would use embedded or legacy code rather than typing their own (at least at beginning). In Commercial, instead, user would be mostly experienced programmer or developer testing and running their own (formatted) code, free to chose if they need to turn it on.

ssptc
Posts: 2
Joined: Tue Feb 03, 2009 2:58 pm
Location: Hartford City, Indiana

Re: Quick survery: short_open_tag support on or off by default?

Post by ssptc » Thu Feb 05, 2009 11:39 pm

personally i believe that short_open tags should be optional based on the developer and the application. while some might thing it is bad practice to use them i have made many programs that require them. so i think it is better to allow an option for it.

Post Reply