Mantis - Quercus
Viewing Issue Advanced Details
2450 major always 02-19-08 17:45 02-19-08 20:08
skehlet  
nam  
normal  
closed 3.1.4  
fixed  
none    
none 3.1.5  
0002450: array_pop returns false when it should return null
array_pop returns false when it should return null. For me, this causes the XML_Serializer PEAR library to not work. The php manual page (http://us3.php.net/manual/en/function.array-pop.php) [^] says "If array is empty (or is not an array), NULL will be returned." The code src/com/caucho/quercus/lib/ArrayModule.java line 291 however has:

      return BooleanValue.FALSE;

Fixing this may avoid future headaches and incompatibility... thank you. Should be a trivial fix.


Notes
(0002786)
nam   
02-19-08 20:08   
php/1710