Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
2830 | minor | always | 08-08-08 12:40 | 08-11-08 14:44 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.2.0 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.2.1 | ||
|
|||||
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: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|