Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3182 | minor | always | 12-16-08 13:10 | 12-16-08 15:57 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.0 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in 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) |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|