Anonymous | Login | Signup for a new account | 12-17-2024 08:26 PST |
Main | My View | View Issues | Change Log | Docs |
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 | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |