Stanislav Malyshev kirjoitti:
I think this case is very unlikely. The use case for this feature is template system, written in long-tags style, but using short-tags notation for PHP templates. To compare:

My name is <?= $name ?> and I am <?= $age ?> years old.

My name is <?php echo $name; ?> and I am <?php echo $age; ?> years old.

I'd rather see <?php= than having this whole "short_open_tag" thing at all.
I'd even use it myself. But I will not EVER enable the damn short tags again. And won't allow anyone else doing it either. And speaking of hostile code: ALL code is hostile unless you wrote it yourself. Have you ever heard of a group of developers working on same code base? Like, say, in a company that develops apps? If you allow changing this thing in runtime, it's adding another potential pitfall to check for when all hell breaks loose and something starts misbehaving and you have no idea why. Time spend on finding the cause would be better spend coding new stuff.

And as you yourself instructed to check for "short_open_tag" in the archive search: Count how many hits it gives which talk about _problems_ with it.
(and no, none of those people ask about "why can't I enable it in runtime..")

--Jani


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to