Anonymous | Login | Signup for a new account | 12-17-2024 14:37 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0003176 | [Quercus] | major | always | 12-14-08 16:44 | 12-15-08 08:44 | ||||
Reporter | koreth | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | 4.0.0 | Product Version | 4.0.0 | ||||
Product Build | |||||||||
Summary | 0003176: $GLOBALS array elements cause NPE when accessed | ||||||||
Description |
<?php function foo() { $GLOBALS['foo'] = array(); $GLOBALS['foo']['bar'] = 'abc'; } foo(); Dies with NPE on the latest Quercus code from svn. [16:42:38.688] {http--8080-8} java.lang.NullPointerException [16:42:38.688] {http--8080-8} at com.caucho.quercus.env.ArrayValueImpl.getArray(ArrayValueImpl.java:545) [16:42:38.688] {http--8080-8} at com.caucho.quercus.env.Var.getArray(Var.java:1037) [16:42:38.688] {http--8080-8} at com.caucho.quercus.expr.ArrayGetExpr.evalArray(ArrayGetExpr.java:115) [16:42:38.688] {http--8080-8} at com.caucho.quercus.expr.ArrayGetGetExpr.evalAssign(ArrayGetGetExpr.java:60) [16:42:38.688] {http--8080-8} at com.caucho.quercus.expr.AssignExpr.eval(AssignExpr.java:88) [16:42:38.688] {http--8080-8} at com.caucho.quercus.program.ExprStatement.execute(ExprStatement.java:64) [16:42:38.688] {http--8080-8} at com.caucho.quercus.program.BlockStatement.execute(BlockStatement.java:105) Happens in both interpreted and compiled modes. |
||||||||
Steps To Reproduce | |||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |