Mantis - Quercus
Viewing Issue Advanced Details
3389 minor always 03-13-09 12:47 03-18-09 15:34
koreth  
nam  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003389: unpack() array element suffixes start with 0
<?php
print_r(unpack("C2xyz", "\x11\x15"));

PHP prints

Array
(
    [xyz1] => 17
    [xyz2] => 21
)

Quercus prints

Array
(
    [xyz0] => 17
    [xyz1] => 21
)
 patch.txt [^] (1,161 bytes) 03-13-09 12:51

Notes
(0003878)
koreth   
03-13-09 12:51   
Patch attached.
(0003894)
nam   
03-18-09 15:34   
php/1d3n