Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.1.15

Bug #17278 Continue 2; not processed correctly
Submitted: 2010-03-30 01:14 UTC
From: phxchris Assigned: clbustos
Status: Closed Package: PHP_Beautifier (version Unknown)
PHP Version: 5.2.12 OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  


 [2010-03-30 01:14 UTC] phxchris (Chris Daley)
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; ?>

Comments

 [2010-05-26 23:28 UTC] jespino (Jesús Espino)
Now is fixed in the subversion repository
 [2010-05-29 01:42 UTC] clbustos (Claudio Bustos)
-Status: Open +Status: Closed -Assigned To: +Assigned To: clbustos
This bug has been fixed in SVN. 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.