summaryrefslogtreecommitdiff
path: root/main/internal_functions_win32.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2002-04-28 16:56:33 +0000
committerStanislav Malyshev <stas@php.net>2002-04-28 16:56:33 +0000
commita57381e3bd1cbb2c5d75e2a456422301399a33fe (patch)
treeae2cd897fde4b14391e27c62badc84af768ea571 /main/internal_functions_win32.c
parent245708b0db58cab150ec10f3551c0976514b8aa6 (diff)
downloadphp-git-a57381e3bd1cbb2c5d75e2a456422301399a33fe.tar.gz
Fix couple of nasty serializer bugs:
a) When array unserializer encounters less data than it expects (like: a:1:{}) it crashes. I don't understand exactly why it does, but the fact is it does. So now it should catch "}" and bail out. b) When array/object data are serialized, the count is written by hash count. However, it can be that in-loop check fails and less data than expected will then be written into the array. Which, due to a), would crash on unserialize. So now it will write empty entries in place of entries it cannot serialize (the other choice would be make two passes on the data, which I don't like).
Diffstat (limited to 'main/internal_functions_win32.c')
0 files changed, 0 insertions, 0 deletions