Mantis - Quercus
Viewing Issue Advanced Details
3292 block always 01-21-09 23:01 01-22-09 10:38
koreth  
nam  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003292: exit() doesn't work in compiled mode if exception handler is active
<?php
try {
  exit(0);
}
catch (Exception $e) {
  print "exception";
}

This prints nothing in regular PHP and in Quercus in interpreted mode. In compiled mode it prints "exception". This is causing problems with some of our login code which expects to be able to exit after outputting a login form, but instead an exception handler catches the exit and the page continues to run.

Notes
(0003776)
nam   
01-22-09 10:38   
php/3g12