php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #26392 short_open_tag behavior change request
Submitted: 2003-11-24 23:04 UTC Modified: 2003-11-25 05:13 UTC
From: cliff at a-cro dot net Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.3.4 OS: Linux
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: cliff at a-cro dot net
New email:
PHP Version: OS:

 

 [2003-11-24 23:04 UTC] cliff at a-cro dot net
Description:
------------
There should be another setting in php.ini so that short_open_tag differentiates between 

<? print('Hi!') ?>

and 

<?= 'Hi!' ?>

It should be useful to disable the <? tag as otherwise PHP will attempt to parse 

<?xml-stylesheet href="http://www.w3.org/StyleSheets/TR/W3C-REC.css" type="text/css"?>

which is undesired behaviour. 

One way to counter the above mentioned problem would be to echo '<?xml-stylesheet href="http://www.w3.org/StyleSheets/TR/W3C-REC.css" type="text/css"?>' but having the ability to disable <? would be nice.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-25 05:13 UTC] derick@php.net
That's exactly why you can turn those short tags off... If you can not use them, then you also cannot use <?=... and that won't change.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 19:01:35 2025 UTC