| Anonymous | Login | Signup for a new account | 10-24-2025 16:10 PDT |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0003254 | [Quercus] | minor | always | 01-14-09 12:59 | 01-14-09 14:51 | ||||
| Reporter | koreth | View Status | public | ||||||
| Assigned To | nam | ||||||||
| Priority | normal | Resolution | fixed | ||||||
| Status | closed | Product 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. |
||||||||
| Additional Information | |||||||||
| Attached Files | |||||||||
|
|
|||||||||
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |