# short_open_tag

- Thread: https://externals.io/message/36051
- Original archive: https://news-web.php.net/php.internals/36051
- Started by Stanislav Malyshev on 2008-03-07T20:45:59+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #36051 — Stanislav Malyshev — 2008-03-07T20:45:59+00:00

URL: https://externals.io/message/36051#36051

Hi!

I wonder - is there a reason why short_open_tag config value is per-dir 
and not PHP_INI_ALL? After all, as I understand, it is private for each 
compilation. So suppose you preferred it generally off (you do XML, 
etc.) but you have some files in your app where you want it on - would 
there be any problem anywhere if it were INI_ALL?
-- 
Stanislav Malyshev, Zend Software Architect
stas@zend.com   http://www.zend.com/
(408)253-8829   MSN: stas@zend.com

---

## #36053 — Lars Strojny — 2008-03-07T22:14:35+00:00

URL: https://externals.io/message/36051#36053 · In reply to: #36051

Hi Stas,

Am Freitag, den 07.03.2008, 12:45 -0800 schrieb Stanislav Malyshev:
[...]
> I wonder - is there a reason why short_open_tag config value is per-dir 
> and not PHP_INI_ALL? After all, as I understand, it is private for each 
> compilation. So suppose you preferred it generally off (you do XML, 
> etc.) but you have some files in your app where you want it on - would 
> there be any problem anywhere if it were INI_ALL?

This is a great idea as some framework use plain PHP scripts for
templating nowadays. So the view could enable short tags for the time
the template script is evaluated and disable it afterwards.

cu, Lars
