Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3701 | major | always | 10-02-09 14:04 | 10-15-09 11:08 | |
|
|||||
Reporter: | PeterJ | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.2 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.2 | ||
|
|||||
Summary: | 0003701: is_object and is_resource return wrong results in many cases | ||||
Description: |
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. |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: | index.zip [^] (410 bytes) 10-02-09 14:04 |
Notes | |||||
|
|||||
|
|