Anonymous | Login | Signup for a new account | 12-17-2024 08:50 PST |
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 | ||||
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 | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |