php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #50662 New directive expression_tags
Submitted: 2010-01-04 22:17 UTC Modified: 2011-07-03 14:35 UTC
Votes:6
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:3 (100.0%)
From: joseberardo at gmail dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 6SVN-2010-01-04 (snap) OS: all
Private report: No CVE-ID: None
 [2010-01-04 22:17 UTC] joseberardo at gmail dot com
Description:
------------
The directive short_tags is deprecated and should not be disponible in 6th major version.
But, it brings expression tags (<?=) and it will no longer be disponible too.

But it's a good idea to create another directive, maybe expression_tag, to enable only expression tags (<?=) and not short_tags (<?). There will be no XML issues to concern and we will can continue using expression tags.


Patches

echo-tags-test (last revision 2010-11-19 11:33 UTC by kanenas at comcast dot net)
echo_tags-patch (last revision 2010-11-19 11:31 UTC by ww dot galen at gmail dot com)
echo-tags-test-2 (last revision 2010-10-22 11:07 UTC by kanenas at comcast dot net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-22 13:11 UTC] kanenas at comcast dot net
Here is a patch (off of the PHP 5.3.3 distribution) to add an "echo_tag" 
configuration option (barely tested) and two tests. It's a good start, for anyone 
interested.
 [2010-11-18 23:59 UTC] jani@php.net
-Package: Feature/Change Request +Package: Scripting Engine problem
 [2010-11-19 12:35 UTC] kanenas at comcast dot net
Following the discussion on PHP-DEV, everyone likes the idea of unconditionally 
enabling echo tags. The current "echo_tags-patch" does this. "echo-tags-test" 
tests it, and "echo-tags-test-2" no longer applies. Patch is now against r305556.
 [2011-07-03 14:35 UTC] felipe@php.net
-Status: Open +Status: Bogus
 [2011-07-03 14:35 UTC] felipe@php.net
short_tags is always available as of PHP 5.4
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 20:01:31 2024 UTC