Mantis - Quercus
Viewing Issue Advanced Details
3668 major always 09-03-09 03:12 09-10-09 12:38
kenfoo  
nam  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.2  
0003668: QuercusParseException - missing semicolon within a scriptlet <?php ... ?> tag.
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.

Notes
(0004236)
nam   
09-10-09 12:38   
php/0659