Mantis - Quercus
Viewing Issue Advanced Details
3146 minor always 12-11-08 00:29 12-11-08 09:18
koreth  
ferg  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003146: array_shift() removes wrong element
<?php
$foo = array(1,2,3,4);
array_shift($foo);
print_r($foo);

Regular PHP prints Array ( [0] => 2 [1] => 3 [2] => 4 ). Quercus prints Array ( [0] => 1 [1] => 3 [2] => 4 ) -- it has removed the second element from the array here, not the first.

Notes
(0003598)
ferg   
12-11-08 09:18   
php/171j