[email protected] wrote: > Message: 2 > Date: Sat, 8 May 2010 15:06:17 +0200 > From: Alexandre Bertails <[email protected]> > Subject: [Resin-interest] 4.0-SNAPSHOT: QuercusEngine is not a member > of com.caucho.quercus > To: Resin Interest <[email protected]> > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=UTF-8 > > 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.
We forgot to call the init() method. This should be fixed for 4.0.7. -- Nam _______________________________________________ resin-interest mailing list [email protected] http://maillist.caucho.com/mailman/listinfo/resin-interest
