phpserialize icon indicating copy to clipboard operation
phpserialize copied to clipboard

Skip } in associative array

Open jmc-netactuate opened this issue 5 years ago β€’ 0 comments

Add consumeStringUntilNotByte: it does what it says on the tin, consumes the string until it encounters a byte other than the lookingForByte.

Use consumeStringUntilNotByte in consumeAssociativeArray to consume the '}' closing bracket, which is necessary when there is additional content beyond the end of a nested associative array.


This change is Reviewable

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