Mantis - Quercus
Viewing Issue Advanced Details
3180 major always 12-15-08 12:03 12-15-08 13:37
koreth  
ferg  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003180: class_exists() throws exception when class doesn't exist
<?php
if (!class_exists('Foo')) {
  print "nope\n";
}

Bombs out in both interpreted and compiled modes:

com.caucho.quercus.QuercusException: 'Foo' is an unknown class
    at com.caucho.quercus.env.Env.findClass(Env.java:3840)
    at com.caucho.quercus.env.Env.findClass(Env.java:3812)
    at com.caucho.quercus.lib.ClassesModule.class_exists(ClassesModule.java:101)

Notes
(0003643)
ferg   
12-15-08 13:37   
php/1j0j