Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003668 [Quercus] major always 09-03-09 03:12 09-10-09 12:38
Reporter kenfoo View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product Version 4.0.0
Summary 0003668: QuercusParseException - missing semicolon within a scriptlet <?php ... ?> tag.
Description The following PHP code fails to parse under Quercus.

<?php if (empty($GLOBALS[$var]) OR ! is_array($GLOBALS[$var])) continue ?>


I got this error:
Exception [ 0 ]: com.caucho.quercus.parser.QuercusParseException: C:\resin4\webapps\quercus\kohana3\system\views\kohana\error.php:115: (token 575) is an unexpected token, expected an expression. in C:\resin4\webapps\quercus\kohana3\system\views\kohana\error.php:114: C:\resin4\webapps\quercus\kohana3\system\views\kohana\error.php:115: ~ Env.java [ 4882 ]


Placing a semicolon end the end of the "continue" keyword works fine
i.e.
<?php if (empty($GLOBALS[$var]) OR ! is_array($GLOBALS[$var])) continue; ?>

Standard PHP seems to parse the one without semicolon correctly.
Additional Information
Attached Files

- Relationships

- Notes
(0004236)
nam
09-10-09 12:38

php/0659
 

- Issue History
Date Modified Username Field Change
09-03-09 03:12 kenfoo New Issue
09-10-09 12:38 nam Status new => assigned
09-10-09 12:38 nam Assigned To  => nam
09-10-09 12:38 nam Status assigned => closed
09-10-09 12:38 nam Note Added: 0004236
09-10-09 12:38 nam Resolution open => fixed
09-10-09 12:38 nam Fixed in Version  => 4.0.2


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker