Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003258 [Quercus] major always 01-14-09 18:39 01-15-09 10:09
Reporter koreth View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product Version 4.0.0
Summary 0003258: Object __toString is not being called when object is passed to Java module function
Description <?php
class Foo {
  public $var = 'abc';
  public function __toString() {
    return $this->var;
  }
}
$x = new Foo;
error_log($x);

This should log "abc" but it logs "ObjectExtValue@921428820[Foo]" instead. This also affects Java methods that are in PHP extension classes (i.e., listed in WEB-INF/classes/META-INF/services/com.caucho.quercus.QuercusModule rather than imported with an "import" statement.)
Additional Information
Attached Files

- Relationships

- Notes
(0003734)
nam
01-15-09 10:09

php/0c4n
php/3c4n
 

- Issue History
Date Modified Username Field Change
01-14-09 18:39 koreth New Issue
01-15-09 10:09 nam Status new => assigned
01-15-09 10:09 nam Assigned To  => nam
01-15-09 10:09 nam Status assigned => closed
01-15-09 10:09 nam Note Added: 0003734
01-15-09 10:09 nam Resolution open => fixed
01-15-09 10:09 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