Re: Buxa Coding Guidelines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux