Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003182 [Quercus] minor always 12-16-08 13:10 12-16-08 15:57
Reporter koreth View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product Version 4.0.0
Summary 0003182: NPE when adding array elements
Description <?php
function foo() {
  $arr = array(array('a' => 0, 'b' => 0, 'c' => 0, 'd' => 0));
  $arr[0]['e'] = 0;
}
foo();

Works in interpreted mode. In compiled mode, throws a NullPointerException:

java.lang.NullPointerException
    at com.caucho.quercus.env.ArrayValueImpl.<init>(ArrayValueImpl.java:102)
    at com.caucho.quercus.env.CopyArrayValue.getCopyArray(CopyArrayValue.java:277)
    at com.caucho.quercus.env.CopyArrayValue.put(CopyArrayValue.java:110)
    at com.caucho.quercus.env.CopyArrayValue.append(CopyArrayValue.java:175)
    at com.caucho.quercus.env.ArrayValue.append(ArrayValue.java:47)
    at com.caucho.quercus.env.Value.put(Value.java:2178)
    at _quercus._html._test._array_22dref_22dmod__php$fun_foo_0.call(_array_22dref_22dmod__php.java:56)
Additional Information
Attached Files

- Relationships

- Notes
(0003660)
nam
12-16-08 15:57

php/34a7
 

- Issue History
Date Modified Username Field Change
12-16-08 13:10 koreth New Issue
12-16-08 13:56 nam Status new => assigned
12-16-08 13:56 nam Assigned To  => nam
12-16-08 15:57 nam Status assigned => closed
12-16-08 15:57 nam Note Added: 0003660
12-16-08 15:57 nam Resolution open => fixed
12-16-08 15:57 nam 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