Mantis - Quercus
Viewing Issue Advanced Details
4754 minor always 09-09-11 14:12 09-09-11 14:12
rickHigh  
 
normal  
new  
open  
none    
none  
0004754: Lazy compilation seems to have issues whereby common methods like define and trim are not found
[11-07-30 10:02:49.117] {http://*:8080-3} [^] com.caucho.quercus.QuercusErrorException: /home/resin-pro-4.0.19/webapps/ROOT/LIVE/geoip.inc:23: Fatal Error: 'define' is an unknown function.
                                                at com.caucho.quercus.env.Env.error(Env.java:6513)
                                                at com.caucho.quercus.env.Env.error(Env.java:6399)
                                                at com.caucho.quercus.env.Env.error(Env.java:6063)
                                                at com.caucho.quercus.expr.CallExpr.evalImpl(CallExpr.java:209)
                                                at com.caucho.quercus.expr.CallExpr.eval(CallExpr.java:151)
                                                at com.caucho.quercus.expr.Expr.evalTop(Expr.java:523)
                                                at com.caucho.quercus.statement.ExprStatement.execute(ExprStatement.java:67)
                                                at com.caucho.quercus.statement.BlockStatement.execute(BlockStatement.java:105)
                                                at com.caucho.quercus.program.QuercusProgram.execute(QuercusProgram.java:413)
                                                at com.caucho.quercus.page.InterpretedPage.execute(InterpretedPage.java:89)
                                                at com.caucho.quercus.env.ProfileEnv.executePage(ProfileEnv.java:129)
                                                at com.caucho.quercus.env.Env.include(Env.java:5421)
                                                at _quercus._PHP_FILE_NO_NAME_FOR_PRIVACY_NFO_0v110__php__prof.execute(BLAH_BLAH_BLAH_PHP.java:178)
                                                at com.caucho.quercus.env.ProfilePage.execute(ProfilePage.java:119)


Here is another instance.

[11-07-30 10:00:58.783] {http://*:8080-3} [^] com.caucho.quercus.QuercusErrorException: 'trim' is an unknown function.
                                                at com.caucho.quercus.env.Env.error(Env.java:6513)
                                                at com.caucho.quercus.env.Env.error(Env.java:6399)
                                                at com.caucho.quercus.env.Env.error(Env.java:6047)
                                                at com.caucho.quercus.program.UndefinedFunction.call(UndefinedFunction.java:71)
                                                at com.caucho.quercus.function.AbstractFunction.call(AbstractFunction.java:442)
                                                at _quercus.SOME_OTHER_FILE__prof.execute(SOME_OTHER_FILE.java:99)
                          

The client reports that the page loads 10 or fifteen times before the issues occurs. So it would seem that the interpreted mode is working and then fails once the system switches to the compile mode.

There are no notes attached to this issue.