php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #68060 Always allows short open tags
Submitted: 2014-09-19 22:29 UTC Modified: 2014-09-20 22:26 UTC
From: abdallah at gmx dot com Assigned:
Status: Wont fix Package: Scripting Engine problem
PHP Version: 5.6.1RC1 OS: All
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: abdallah at gmx dot com
New email:
PHP Version: OS:

 

 [2014-09-19 22:29 UTC] abdallah at gmx dot com
Description:
------------
We would like to provide cleaner websites and also distributables.
A lot of web hosting companies does not have short_open_tags enabled so we always have to release old school source codes inside templates

<?php echo $foo; ?>

I think the short_open_tag option should be enabled in all cases and simply NOT disabl-able


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-09-19 23:15 UTC] requinix@php.net
-Status: Open +Status: Wont fix
 [2014-09-19 23:15 UTC] requinix@php.net
Short open echo tags <?= are always available as of PHP 5.4.
http://php.net/manual/en/ini.core.php#ini.short-open-tag
 [2014-09-20 08:53 UTC] abdallah at gmx dot com
All types of short open tags should be available and not disablable, please.
Also the simple :

<?php to <?
 [2014-09-20 10:39 UTC] nikic@php.net
<? is incompatible with XML declarations, which is why short_tags is disabled by default and its use discouraged.
 [2014-09-20 21:13 UTC] requinix@php.net
short_open_tag is changeable PHP_INI_PERDIR which means you can enable it in a custom php.ini, .htaccess, or .user.ini, one of which is likely available to you.
 [2014-09-20 22:26 UTC] abdallah at gmx dot com
If short tags are not compatible with XML declarations, what about changing them to something like <_ _> or <| |> on PHP 7 ?
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 23:01:32 2025 UTC