Anonymous | Login | Signup for a new account | 12-17-2024 11:38 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ 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 | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | 3.0.20 | Product Version | 3.0.20 | ||||
Product Build | |||||||||
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 | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |