Hi,

when I use 4.0-SNAPSHOT, I can't compile the examples from [1].

If I use the 4.0.6 version, it compiles but some PHP functions are not
available (written in Scala):
[[
val engine:QuercusEngine = new QuercusEngine()
engine.execute("""<?php define("PREFERRED", 0x10000000); ?>""")
]]

This is the exception raised:
[[
com.caucho.quercus.QuercusErrorException: eval::1: Fatal Error:
'define' is an unknown function.
        at com.caucho.quercus.env.Env.error(Env.java:6385)
        at com.caucho.quercus.env.Env.error(Env.java:6273)
        at com.caucho.quercus.env.Env.error(Env.java:5957)
        at com.caucho.quercus.expr.CallExpr.evalImpl(CallExpr.java:198)
        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.program.QuercusProgram.execute(QuercusProgram.java:409)
        at com.caucho.quercus.QuercusEngine.execute(QuercusEngine.java:139)
        at com.caucho.quercus.QuercusEngine.execute(QuercusEngine.java:100)
...
]]

If I execute the same code in a servlet, I don't have any problem.

Any idea?

Alexandre Bertails.

[1] http://wiki.caucho.com/Quercus:_Command_Line_Interface_%28CLI%29


_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to