Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003123 [Quercus] minor always 12-05-08 11:09 12-10-08 09:14
Reporter koreth 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.0 Product Version 3.2.1
  Product Build
Summary 0003123: var_export doesn't work on objects
Description <?php
class Foo {
  var $bar;
}
$x = new Foo();
print var_export($x);

On Quercus, this throws an exception:

java.lang.UnsupportedOperationException: com.caucho.quercus.env.ObjectExtValue
    at com.caucho.quercus.env.Value.varExport(Value.java:2299)
    at com.caucho.quercus.lib.VariableModule.var_export(VariableModule.java:741)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.caucho.quercus.module.StaticFunction.invoke(StaticFunction.java:129)
...

Not super high-priority but this is sometimes helpful for debugging since print_r doesn't always fully descend into field values.
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0003587)
nam
12-10-08 09:14

php/120s
 

- Issue History
Date Modified Username Field Change
12-05-08 11:09 koreth New Issue
12-08-08 10:39 nam Status new => assigned
12-08-08 10:39 nam Assigned To  => nam
12-10-08 09:14 nam Status assigned => closed
12-10-08 09:14 nam Note Added: 0003587
12-10-08 09:14 nam Resolution open => fixed
12-10-08 09:14 nam Fixed in Version  => 4.0.0


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