[go: up one dir, main page]

Menu

#86 PHP short tags randomly in code?

open
nobody
ccHost (86)
5
2014-08-15
2007-12-06
tunalicker
No

some people think PHP short tags are just fine.
I am strongly opposed to them.

Before I install any software, I search and replace any code I get for < ? and spaces after or a return line.
and replace with the full tag: < ? p h p

http://news.php.net/php.general/258748
http://bugs.php.net/bug.php?id=21497
to avoid the convoluted and unpleasant conversations from both sides of the issue, I just don't use software with PHP short tags. I use them for XML when required. There is where I find it useful to have a separation. I can search code for the bracket and question mark alone and find the XML I'm after (site-wide searches for example).
otherwise bug hunting in other people's code is one-step more difficult...

Discussion

  • tunalicker

    tunalicker - 2008-07-06

    Logged In: YES
    user_id=1953515
    Originator: YES

    If someone wanted to explain
    FILE: cchost_lib/cc-tpl-parser.php
    to me..perhaps I will rewrite the thing for my own taste?

    File Added: cc-tpl-parser.php

     
  • tunalicker

    tunalicker - 2008-07-06

    cc-tpl-parser.php with no comments at all. where do you start?

     

Log in to post a comment.