PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » PHP » PHP_Beautifier » Bug #7854

Rewrite T_OPEN_TAG_WITH_ECHO

Details

Request #7854Rewrite T_OPEN_TAG_WITH_ECHO
Submitted2006-06-10 05:49 UTC
Fromsoporte at onfocus dot cl
StatusBogus
PackagePHP_Beautifier
PHP Version5_2 CVS-2006-06-10
OSirrelevant
Roadmaps(Not assigned)

Comments

[2006-06-10 05:49 UTC] soporte at onfocus dot cl

Description:
------------
Hi:

Will be great if you can rewrite T_OPEN_TAG_WITH_ECHO in the default filter, specially "<%=" because it will be removed in PHP6.

"<%=" --> "<?php echo "
"<?=" --> "<?php echo "

Test script:
---------------
<?= $var ?> or

<%= $var ?>

Expected result:
----------------
<?php echo $var ?>

Actual result:
--------------
<?= $var ?> or

<%= $var ?>

[2006-06-13 21:28 UTC] clbustos at php dot net

Use svn co https://svn.sourceforge.net/svnroot/beautifyphp/trunk PHP_Beautifier

This request was implemented on Pear filter

[2006-06-13 21:28 UTC] clbustos at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

[2006-06-15 15:30 UTC] soporte at onfocus dot cl

actually the conversion of "<%=" to "<?php echo" will fail in most installations, because asp_tags are off by default.

Im reopening this to see if it's possible that php_beautifier command line interface can invoke the PHP interpreter with -d asp_tags=1 -d short_open_tag=1 otherwise both can conversions can fail in some enviroments.

[2007-02-10 04:42 UTC] clbustos at php dot net

Thank you for taking the time to write to us, but this is not
a bug.

I think that the modifications to php.ini should be responsability of the developer.