Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
1675 | crash | always | 04-09-07 08:01 | 04-11-07 00:23 | |
|
|||||
Reporter: | hendrikb | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.0 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.1.1 | ||
|
|||||
Summary: | 0001675: php include throws NullPointerException | ||||
Description: |
The Quercus 3.1 snapshot (alpha) as a standalone version with Java 6 and JSR 223 produces a Java NullPointerException when using the php include (include_one, require, require_once) statement. Here the Java stacktrace: java.lang.NullPointerException at com.caucho.quercus.expr.IncludeExpr.<init>(IncludeExpr.java:49) at com.caucho.quercus.expr.IncludeExpr.<init>(IncludeExpr.java:54) at com.caucho.quercus.expr.ExprFactory.createInclude(ExprFactory.java:854) at com.caucho.quercus.parser.QuercusParser.parseTermBase(QuercusParser.java:2882) at com.caucho.quercus.parser.QuercusParser.parseTerm(QuercusParser.java:2477) at com.caucho.quercus.parser.QuercusParser.parseAssignExpr(QuercusParser.java:2332) at com.caucho.quercus.parser.QuercusParser.parseMulExpr(QuercusParser.java:2304) at com.caucho.quercus.parser.QuercusParser.parseAddExpr(QuercusParser.java:2276) at com.caucho.quercus.parser.QuercusParser.parseShiftExpr(QuercusParser.java:2251) at com.caucho.quercus.parser.QuercusParser.parseCmpExpr(QuercusParser.java:2211) at com.caucho.quercus.parser.QuercusParser.parseEqExpr(QuercusParser.java:2182) at com.caucho.quercus.parser.QuercusParser.parseBitAndExpr(QuercusParser.java:2160) at com.caucho.quercus.parser.QuercusParser.parseBitXorExpr(QuercusParser.java:2138) at com.caucho.quercus.parser.QuercusParser.parseBitOrExpr(QuercusParser.java:2116) at com.caucho.quercus.parser.QuercusParser.parseAndExpr(QuercusParser.java:2094) at com.caucho.quercus.parser.QuercusParser.parseOrExpr(QuercusParser.java:2072) at com.caucho.quercus.parser.QuercusParser.parseConditionalExpr(QuercusParser.java:2047) at com.caucho.quercus.parser.QuercusParser.parseWeakAndExpr(QuercusParser.java:2025) at com.caucho.quercus.parser.QuercusParser.parseWeakXorExpr(QuercusParser.java:2003) at com.caucho.quercus.parser.QuercusParser.parseWeakOrExpr(QuercusParser.java:1981) at com.caucho.quercus.parser.QuercusParser.parseExpr(QuercusParser.java:1972) at com.caucho.quercus.parser.QuercusParser.parseTopExpr(QuercusParser.java:1911) at com.caucho.quercus.parser.QuercusParser.parseExprStatement(QuercusParser.java:1881) at com.caucho.quercus.parser.QuercusParser.parseStatementList(QuercusParser.java:668) at com.caucho.quercus.parser.QuercusParser.parseTop(QuercusParser.java:487) at com.caucho.quercus.parser.QuercusParser.parse(QuercusParser.java:407) at com.caucho.quercus.parser.QuercusParser.parse(QuercusParser.java:311) at com.caucho.quercus.script.QuercusScriptEngine.eval(QuercusScriptEngine.java:75) at com.caucho.quercus.script.QuercusScriptEngine.eval(QuercusScriptEngine.java:127) at javax.script.AbstractScriptEngine.eval(Unknown Source) at test.Test.main(Test.java:17) Here the Java code snippet that produces the error: public static void main(String[] args) { try { ScriptEngineManager manager = new ScriptEngineManager(); ScriptEngine engine = manager.getEngineByName("php"); engine.eval("<? include(\"C:\\test.php\"); ?>"); } catch (Exception e) { e.printStackTrace(); } } |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|