Quick survery: short_open_tag support on or off by default?

General discussion forum for the Zend Server

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

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

Quick survery: short_open_tag support on or off by default?

Postby shahar on 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.
shahar
 
Posts: 245
Joined: Mon Oct 06, 2008 12:37 pm
Location: Israel

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

Postby mfacenet on 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
mfacenet
 
Posts: 9
Joined: Sat Jan 17, 2009 7:33 pm
Location: Nashville, TN

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

Postby ddt on 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.
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?

Postby firespade on 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.
firespade
 
Posts: 7
Joined: Wed Jan 14, 2009 4:00 pm
Location: Charleston, SC USA

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

Postby jeandnd on 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.
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?

Postby ssptc on 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.
ssptc
 
Posts: 2
Joined: Tue Feb 03, 2009 2:58 pm
Location: Hartford City, Indiana


Return to Zend Server

Who is online

Users browsing this forum: No registered users and 2 guests