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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Jun 26 14:01:32 2024 UTC