phpserialize icon indicating copy to clipboard operation
phpserialize copied to clipboard

Nested associative arrays fail to parse at '}'

Open jmc-netactuate opened this issue 5 years ago • 2 comments

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.

jmc-netactuate avatar May 14 '19 01:05 jmc-netactuate

Can you please create a PR for this?

elliotchance avatar May 14 '19 03:05 elliotchance

I believe #16 should do it.

jmc-netactuate avatar May 24 '19 00:05 jmc-netactuate