php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #33289 short_open_tag behaviour suggestion
Submitted: 2005-06-09 23:26 UTC Modified: 2005-06-10 11:29 UTC
From: shurikk at mail dot ru Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.3.11 OS: any
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-06-09 23:26 UTC] shurikk at mail dot ru
Description:
------------
just a suggestion for short_open_tag

When it's ON, can parser ignore everything that is not "<?php", "<?=", "<? " i.e. like <?xml, <?blah ... etc.

and allow things like <?= work as designed

this is similar to bug/suggestion #26392

see example

Thanks

Reproduce code:
---------------
file: data.xml
<?xml version="1.0" ?>
<data>
<test><?=$value?></test>
</data>

file data.php
$value = 5;
include('data.xml'); // error


Expected result:
----------------
xml output with xml header

Actual result:
--------------
parser error

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-10 11:29 UTC] tony2001@php.net
No, this won't be changed.
Read detailed explanation why in bug #26392.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 03 10:01:29 2024 UTC