Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003701 [Quercus] major always 10-02-09 14:04 10-15-09 11:08
Reporter PeterJ View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product 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.
Additional Information
Attached Files  index.zip [^] (410 bytes) 10-02-09 14:04

- Relationships

- Notes
(0004266)
nam
10-15-09 11:08

php/1455
php/1f0b
 

- Issue History
Date Modified Username Field Change
10-02-09 14:04 PeterJ New Issue
10-02-09 14:04 PeterJ File Added: index.zip
10-15-09 11:08 nam Status new => assigned
10-15-09 11:08 nam Assigned To  => nam
10-15-09 11:08 nam Status assigned => closed
10-15-09 11:08 nam Note Added: 0004266
10-15-09 11:08 nam Resolution open => fixed
10-15-09 11:08 nam Fixed in Version  => 4.0.2
08-23-11 15:04 krystian Issue Monitored: krystian


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
32 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker