Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
555 | minor | always | 12-23-05 07:39 | 12-23-05 08:49 | |
|
|||||
Reporter: | bago | Platform: | |||
Assigned To: | OS: | ||||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | |||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.0.18 | ||
|
|||||
Summary: | 0000555: serialize for array values add an unneeded ";" to the serialized value (and unserialize need it) | ||||
Description: |
<?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" |
||||
Steps To Reproduce: | |||||
Additional Information: |
Here is the fix: QuercusVariableModule:666: put unserializeExpect(is, '}'); instead of unserializeExpect(is, '}'); unserializeExpect(is, ';'); ArrayValue:589: put sb.append("}"); instead of sb.append("};"); |
||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|