Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
1123 | major | always | 05-17-06 17:21 | 05-18-06 16:31 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.0.20 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in 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. |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|