Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
2879 | minor | always | 08-28-08 23:56 | 09-03-08 23:47 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.2.1 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.2.1 | ||
|
|||||
Summary: | 0002879: Bogus "break" causes compilation failure | ||||
Description: |
<?php function foo($id) { if ($id == 1) { break; } return null; } That's obviously a bogus "break" (and this Quercus bug uncovered a case like this in our code base) but the above fails to compile. The generated Java code has two "return" statements in a row which causes an "unreachable statement" error. Not high priority at all; the offending PHP code can and should be fixed to not tickle this bug. |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|