Mantis - Quercus
Viewing Issue Advanced Details
4396 major always 02-15-11 04:37 02-25-11 13:19
geleont  
 
normal  
new 4.0.14  
open  
none    
none  
0004396: Function pack has a bug
Minimal code to reproduce:
<?php
$packed = pack ("L", 84654);
print ord($packed[0]);
print"
";
print ord($packed[1]);
print"
";
print ord($packed[2]);
print"
";
print ord($fileSize[3]);
PHP result:
174
74
1
0
string(4) "®J&65533;"
Quercus result:
0
1
74
174
string(4) "&65533;J®"

Notes
(0005085)
kdecherf   
02-25-11 13:19   
Patch proposal:
https://github.com/CleverCloud/Quercus/commit/0fa0b8a5175849471f57a4bf48039e4433f21beb [^]