| Anonymous | Login | Signup for a new account | 10-23-2025 22:09 PDT |
| 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 | ||||
| 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 | Platform | |||||
| Status | closed | OS | |||||||
| Projection | none | OS Version | |||||||
| ETA | none | Fixed in Version | 4.0.0 | Product Version | 4.0.0 | ||||
| Product Build | |||||||||
| 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 | |||||||||
| Attached Files | |||||||||
|
|
|||||||||
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |