Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] 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  
Status closed   Product Version 3.2.0
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);
Additional Information
Attached Files

- Relationships

- Notes
(0003319)
nam
08-11-08 14:44

php/37f-
 

- Issue History
Date Modified Username Field Change
08-08-08 12:40 koreth New Issue
08-08-08 13:58 nam Status new => assigned
08-08-08 13:58 nam Assigned To  => nam
08-11-08 14:44 nam Status assigned => closed
08-11-08 14:44 nam Note Added: 0003319
08-11-08 14:44 nam Resolution open => fixed
08-11-08 14:44 nam Fixed in Version  => 3.2.1


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker