Mantis - Quercus
Viewing Issue Advanced Details
2946 block always 09-17-08 13:06 09-17-08 14:54
koreth  
ferg  
normal  
closed 3.2.1  
fixed  
none    
none 3.2.1  
0002946: Can't add elements to array
The fix for bug 2940 (revision 4661 on the public svn server) has made it completely impossible to modify arrays:

<?php
$arr = array();
$arr['testing'] = 1;
print $arr['testing'];

Regular PHP prints "1". Quercus (both compiled and interpreted mode) prints nothing, and if you print_r the array, you see there's no "testing" element; it shows up as an empty array. The bug isn't present in the code base of revision 4660.

Notes
(0003454)
ferg   
09-17-08 14:54   
php/3440