Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3254 | minor | always | 01-14-09 12:59 | 01-14-09 14:51 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.0 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.0 | ||
|
|||||
Summary: | 0003254: Object __toString is not being called when object is passed to Java function | ||||
Description: |
ToStringTest.java: package test; public class ToStringTest { public String test(String str) { return str; } } test.php: <?php import test.ToStringTest; class Foo { public $var = 'abc'; public function __toString() { return $this->var; } } $ts = new ToStringTest; $x = new Foo; print $ts->test($x); This should output "abc" but it outputs "ObjectExtValue@8962932[Foo]". __toString() does appear to be getting correctly called when objects are used as strings in PHP code. |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|