Anonymous | Login | Signup for a new account | 12-17-2024 11:58 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 | ||||
0002830 | [Quercus] | minor | always | 08-08-08 12:40 | 08-11-08 14:44 | ||||
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 | 3.2.1 | Product Version | 3.2.0 | ||||
Product Build | |||||||||
Summary | 0002830: Conditional function definition fails to compile | ||||||||
Description |
<?php if (true) { function foo($arg) { } } Works fine in interpreted mode. In compiled mode, fails: [12:36:05.643] {resin-13} Compiling _quercus/_test__php.java [12:36:05.827] {resin-13} Quercus[/data/users/koreth/resin/webapps/ROOT/test.php] loading interpreted page instead because of compile error [12:36:05.827] {resin-13} com.caucho.java.JavaCompileException: /data/users/koreth/resin/webapps/ROOT/WEB-INF/work/_quercus/_test__php.java:37: cannot find symbol [12:36:05.827] {resin-13} symbol : variable fun_foo [12:36:05.827] {resin-13} location: class _quercus._test__php [12:36:05.827] {resin-13} env.addFunction("foo", fun_foo); |
||||||||
Steps To Reproduce | |||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |