Re: Buxa Coding Guidelines

From: Date: Mon, 10 Sep 2007 06:35:27 +0000
Subject: Re: Buxa Coding Guidelines
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-261891@lists.php.net to get a copy of this message
brian wrote: > Jim Lucas wrote: >> >> Or, even better, turn off short_open_tag >> Then PHP will not try and parse <?xml Exactly. > Per: i obviously did misinterpret you. I thought you meant that > SOME_XHTML_PARSER would choke on PHP tags. If so, perhaps my response > will make sense to you now. But my point is still valid; one can just > print out the <?xml with PHP. Being *one* line--and always in the same > place--in every script, i don't see this as a very big deal at all. It's a little backward, isn't it? Certainly in comparison to just turning off short tags, which we agree is the Right Thing(r) to do anyway. > I do agree that developing with short_open_tags = on is a Bad Idea if > the app will not be under one's control. vtiger was one of those - at least in version 4, IIRC. Serious PITA. > Better yet, PHP should do away with <? ?> > altogether but allow <?= ?>, which is *very* helpful (to those of us > who choose to use it). I think it's fine for PHP to leave some of these as user options, but the default should be to leave short_open_tag off (and have an otherwise sane set of defaults). /Per Jessen, Zürich

« previous php.general (#261891) next »