Mantis Bugtracker
  

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

- Relationships

- Notes
(0003634)
ferg
12-15-08 08:44

php/0880
 

- Issue History
Date Modified Username Field Change
12-14-08 16:44 koreth New Issue
12-15-08 08:44 ferg Note Added: 0003634
12-15-08 08:44 ferg Assigned To  => ferg
12-15-08 08:44 ferg Status new => closed
12-15-08 08:44 ferg Resolution open => fixed
12-15-08 08:44 ferg Fixed in Version  => 4.0.0


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