Mantis - Quercus
Viewing Issue Advanced Details
555 minor always 12-23-05 07:39 12-23-05 08:49
bago  
 
normal  
closed  
fixed  
none    
none 3.0.18  
0000555: serialize for array values add an unneeded ";" to the serialized value (and unserialize need it)
<?php
print(serialize(array("a")));
?>

in official php: a:1:{i:0;s:1:"a";}
in quercus: a:1:{i:0;s:1:"a";};

so quercus unserialize is not able to unserialize data serialized by official php

See the fix in the "additional note section"
Here is the fix:

QuercusVariableModule:666:
put
    unserializeExpect(is, '}');
instead of
    unserializeExpect(is, '}');
    unserializeExpect(is, ';');

ArrayValue:589:
put
    sb.append("}");
instead of
    sb.append("};");


Notes
(0000565)
ferg   
12-23-05 08:49   
php/1215, php/1225