Mantis - Quercus
Viewing Issue Advanced Details
3223 major always 01-06-09 22:16 01-07-09 11:00
koreth  
nam  
urgent  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003223: __toString method not being called when object is used in string context
<?php
// Test to figure out why we're seeing ObjectExtValue from URI objects.
class Foo {
  public $var = 'abc';
  public function __toString() {
    return $this->var;
  }
}
$x = new Foo;
print $x . 'def';

Regular PHP prints "abcdef". Quercus prints "ObjectExtValue@318434416[Foo]def".

Notes
(0003707)
nam   
01-07-09 11:00   
php/09ko
php/39ko