Mantis - Quercus
Viewing Issue Advanced Details
3123 minor always 12-05-08 11:09 12-10-08 09:14
koreth  
nam  
normal  
closed 3.2.1  
fixed  
none    
none 4.0.0  
0003123: var_export doesn't work on objects
<?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.

Notes
(0003587)
nam   
12-10-08 09:14   
php/120s