phpserialize
phpserialize copied to clipboard
Nested associative arrays fail to parse at '}'
Nested associative array which are not the last item at a given parsing level will produce an error during read of the next result after the associative array because the closing '}' brace(s) are not consumed.
I have implemented a fix for the associative array case:
0001-The-closing-must-be-consumed-after-an-associative-ar.txt
I believe it probably affects the indexed array case as well but have not tested to confirm, if so I believe the same approach should resolve the issue there as well.
Can you please create a PR for this?
I believe #16 should do it.