Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001123 [Quercus] major always 05-17-06 17:21 05-18-06 16:31
Reporter koreth View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.0.20
Summary 0001123: Can't call Java method in "return" statement
Description PHP:

<?php
function foo() {
        $x = new Something();
        print "static text = " . $x->getStaticText() . "
";
        return $x->getStaticText();
}

foo();
?>

Java:

package test;
public class Something {
        public String getStaticText() {
                return "some static text";
        }
}

The first call to getStaticText() succeeds, but the second fails. This is in interpreted mode (compiled mode isn't working for me with the current snapshot so I can't speak for that.) Output looks like:

static text = some static text
/Users/sgrimm/resin/resin/webapps/test/test.php:5: Fatal Error: test.Something: 'getStaticText' is an unknown method.
Additional Information
Attached Files

- Relationships

- Notes
(0001151)
ferg
05-18-06 16:31

php/0c3{c,d}
 

- Issue History
Date Modified Username Field Change
05-17-06 17:21 koreth New Issue
05-18-06 16:31 ferg Note Added: 0001151
05-18-06 16:31 ferg Assigned To  => ferg
05-18-06 16:31 ferg Status new => closed
05-18-06 16:31 ferg Resolution open => fixed
05-18-06 16:31 ferg Fixed in Version  => 3.0.20


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker