Mantis - Quercus
Viewing Issue Advanced Details
1120 minor always 05-17-06 15:08 05-19-06 13:01
koreth  
ferg  
normal  
closed 3.0.20  
fixed  
none    
none 3.0.20  
0001120: "try" keyword causes parse failure
This is really "Need PHP5 exceptions" but even without full exception support, the parser could ignore try/catch blocks. Right now if I have:

<?php
try { print "hello"; }
catch (Exception $e) { print "oops"; }
?>

I get:

/Users/sgrimm/resin/resin/webapps/test/test.php:2: expected '}' at ';'
in
test.php:1: <?php
test.php:2: try { print "hello"; }
test.php:3: catch (Exception $e) { print "oops"; }

Notes
(0001154)
ferg   
05-19-06 13:01   
php/0g0-, php/3g0-