PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » PHP » PHP_Beautifier » Bug #1597

Beautifier damages source code

Details

Submitted2004-06-09 21:09 UTC
Frommarduk at k-d-w dot org
Assignedclbustos
StatusClosed
PackagePHP_Beautifier
PHP Version5.0.0RC2 (Release Candidate 2)
OSWindowsXP
Roadmaps(Not assigned)

Comments

[2004-06-09 21:09 UTC] marduk at k-d-w dot org

Description:
------------
I'm running version 0.0.6.1 of PHP_Beautifier.
I discovered today, that PHP_Beautifier has problems with brackets (e.g. after if statement) followed by a comment.

Before converting the code looks like:
<code>
if ($_POST["url"] != "") //inserting data
{
</code>
But after converting the following result is returned:
<code>
if ($_POST["url"] != "") //inserting data {
</code>

Therefore the hole script is being damaged.

[2004-06-10 05:50 UTC] clbustos at entelchile dot net

Fixed on CVS (http://cvs.sourceforge.net/viewcvs.py/beautifyphp/PHP_Beautifier/)
Release 0.0.7 will include the fix for this error.