Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] 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 Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.0 Product Version 4.0.0
  Product Build
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
Attached Files

- Relationships

- Notes
(0003730)
nam
01-14-09 14:51

php/0c11
php/3c11
 

- Issue History
Date Modified Username Field Change
01-14-09 12:59 koreth New Issue
01-14-09 14:42 nam Status new => assigned
01-14-09 14:42 nam Assigned To  => nam
01-14-09 14:51 nam Status assigned => closed
01-14-09 14:51 nam Note Added: 0003730
01-14-09 14:51 nam Resolution open => fixed
01-14-09 14:51 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