Bug #17278 [Com]: Continue 2; not processed correctly
| From: | jespinog@gmail.com | Date: | Wed, 26 May 2010 19:28:57 +0000 |
| Subject: | Bug #17278 [Com]: Continue 2; not processed correctly | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-3802@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=17278&edit=1
ID: 17278
Comment by: jespinog@gmail.com
Reported By: chris at lodesys dot com
Summary: Continue 2; not processed correctly
Status: Open
Type: Bug
Package: PHP_Beautifier
Operating System: Windows XP
Package Version: Unknown
PHP Version: 5.2.12
Roadmap Versions:
New Comment:
Now is fixed in the subversion repository
Previous Comments:
------------------------------------------------------------------------
[2010-03-29 21:14:07] phxchris
Description:
------------
Running a hacked version of 0.1.13 and found a problem where a
"Continue 2;" statement would be reformatted to "Continue2;".
Fix is to add...
T_CONTINUE => 'T_BREAK',
... into the...
$aTokensToChange = array(
...line in Beautifier.php.
T_CONTINUE was not being handled anywhere.
Not sure of the problem still exists in the current version, but wanted
to pass it along, just in case.
Test script:
---------------
<?php
continue 2;
break 2;
?>
Expected result:
----------------
<?php
continue 2;
break 2;
?>
Actual result:
--------------
<?php
continue2;
break 2;
?>
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=17278&edit=1