On Fri, July 13, 2007 8:54 am, Daniel Brown wrote:
>     To my knowledge (and even a quick peek at
> http://www.php.net/ini.core), there is no indication that
> short_open_tags is deprecated, nor that it's "been on the verge of
> removal" at any point.  I don't want to start a flame war, but it
> sounds like you've been given some bad information.  In fact, removing
> the short_open_tags core directive would not only cause probably more
> than half of existing scripts to break (that's just an educated guess,
> of course), but would also completely eradicate the PHP core feature
> of shorthand output:

You must have missed this:
http://php.net/~derick/meeting-notes.html#remove-support-for-and-script-language-php-and-add-php-var

This is at least one major PHP Dev Team meeting where remove short
open tags was on the table...

I do not know of the current status of this topic.

This meeting was almost 2 years ago.

The conclusion in the above URL should not be considered current, much
less final.

> <?php
>     echo "This is output.\n";
> ?>
>
>     .... versus:
>
> <?="This is output.\n"?>
>
>     Also note that, with shorthand output, the echoed output does not
> need a semicolon at the end if it's a single line.  I generally do it
> out of habit, but for the purpose of illustration here, I omitted the
> semicolon.  Additionally, a disclaimer should be made in favor of the
> anti-short_open_tags people, where the three lines can safely coexist
> on one.

The omission of the semi-colon is not related in any way, shape, or
form to the short open tag.

It works completely independently of that.

It also is completely irrelevant how many lines you use to type the
code, nor how many lines of PHP there are.  This is perfectly valid
code:
<?php
  echo 'foo'
?>

I do not foresee this feature disappearing, personally, but I'm not
involved in making that decision.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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

Reply via email to