Viewing Issue Advanced Details
[ Jump to Notes ]
|
[ View Simple ]
[ 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 |
Platform |
|
Status |
closed |
|
OS |
|
Projection |
none |
|
OS Version |
|
ETA |
none |
Fixed in Version |
4.0.2 |
Product Version |
4.0.2 |
|
Product Build |
|
|
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 |
|
|
Attached Files |
index.zip [^] (410 bytes) 10-02-09 14:04 |
|