Mantis - Quercus
Viewing Issue Advanced Details
3701 major always 10-02-09 14:04 10-15-09 11:08
PeterJ  
nam  
normal  
closed 4.0.2  
fixed  
none    
none 4.0.2  
0003701: is_object and is_resource return wrong results in many cases
The is_object() function and is_resource() function appear to return the wrong results for various classes defined in PHP. For example, the attached code when run in native PHP (5.2.10) indicates that MySQLi and MySQLi_Result are both objects but not resources, while Quercus claims the exact opposite.

The issue appears to be related to the @ResourceType annotation added to the Quercus implementation classes, and to the JavaClassDef.wrap() method which appears to wrap any classes which have the @ResourceType annotation within a JavaResourceValue rather than a JavaValue.
 index.zip [^] (410 bytes) 10-02-09 14:04

Notes
(0004266)
nam   
10-15-09 11:08   
php/1455
php/1f0b