2010/5/14 Nam <n...@caucho.com>:
> resin-interest-requ...@caucho.com wrote:
>
>> Message: 2
>> Date: Sat, 8 May 2010 15:06:17 +0200
>> From: Alexandre Bertails <alexan...@bertails.org>
>> Subject: [Resin-interest] 4.0-SNAPSHOT: QuercusEngine is not a member
>>       of      com.caucho.quercus
>> To: Resin Interest <resin-interest@caucho.com>
>> Message-ID:
>>       <aanlktincgtcc_bp0pzk5mm7u-g-epmzim3tuqvn9s...@mail.gmail.com>
>> 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.

Excellent! Thank you for the answer :-)

Alexandre.

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


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

Reply via email to