Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005772 [Quercus] major always 07-07-14 04:04 07-07-14 19:04
Reporter luye66 View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 4.0.36
Summary 0005772: Var function is not supported?
Description I don't know whether a similar issue exists if does forgive me thanks lol

$a = 'echo';
$a('abc');

in apache this will print "abc"
while in quercus nothing

In some case if some code is $foo->$bar() will get an error in background like:
java.lang.NullPointerException
    at com.caucho.quercus.expr.ThisFieldExpr.init(ThisFieldExpr.java:86)
    at com.caucho.quercus.expr.ThisFieldExpr.eval(ThisFieldExpr.java:102)
    at com.caucho.quercus.expr.ArrayGetExpr.eval(ArrayGetExpr.java:83)
    at com.caucho.quercus.expr.Expr.evalBoolean(Expr.java:772)
    at com.caucho.quercus.statement.IfStatement.execute(IfStatement.java:83)
    at com.caucho.quercus.statement.BlockStatement.execute(BlockStatement.java:105)
    at com.caucho.quercus.program.QuercusProgram.execute(QuercusProgram.java:417)
    at com.caucho.quercus.page.InterpretedPage.execute(InterpretedPage.java:90)
    at com.caucho.quercus.env.Env.executePage(Env.java:4312)
    at com.caucho.quercus.env.Env.include(Env.java:5920)
    at com.caucho.quercus.expr.FunIncludeExpr.eval(FunIncludeExpr.java:90)
    at com.caucho.quercus.expr.Expr.evalTop(Expr.java:538)
    at com.caucho.quercus.statement.ExprStatement.execute(ExprStatement.java:67)
    at com.caucho.quercus.statement.BlockStatement.execute(BlockStatement.java:105)
    at com.caucho.quercus.statement.IfStatement.execute(IfStatement.java:84)
    at com.caucho.quercus.statement.BlockStatement.execute(BlockStatement.java:105)
    at com.caucho.quercus.program.Function.callImpl(Function.java:420)
    at com.caucho.quercus.program.Function.callMethod(Function.java:456)
    at com.caucho.quercus.env.ObjectExtValue.callMethod(ObjectExtValue.java:763)
    at com.caucho.quercus.expr.AbstractMethodExpr.eval(AbstractMethodExpr.java:91)
    at com.caucho.quercus.expr.ObjectMethodExpr.eval(ObjectMethodExpr.java:85)
    at com.caucho.quercus.expr.Expr.evalTop(Expr.java:538)
    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:417)
    at com.caucho.quercus.page.InterpretedPage.execute(InterpretedPage.java:90)
    at com.caucho.quercus.env.Env.executePage(Env.java:4312)
    at com.caucho.quercus.env.Env.include(Env.java:5920)
    at com.caucho.quercus.expr.FunIncludeExpr.eval(FunIncludeExpr.java:90)
    at com.caucho.quercus.expr.Expr.evalTop(Expr.java:538)
    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:417)
    at com.caucho.quercus.page.InterpretedPage.execute(InterpretedPage.java:90)
    at com.caucho.quercus.env.Env.executePageTop(Env.java:4323)
    at com.caucho.quercus.env.Env.executeTop(Env.java:4268)
    at com.caucho.quercus.servlet.QuercusServletImpl.service(QuercusServletImpl.java:212)
    at com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:606)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
Additional Information
Attached Files

- Relationships

- Notes
(0006461)
luye66
07-07-14 19:04

I should apologize for reporting this var function is supported..I got a mistake .
apologize for this again ..close it thanks
 

- Issue History
Date Modified Username Field Change
07-07-14 04:04 luye66 New Issue
07-07-14 19:04 luye66 Note Added: 0006461


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