Changes in v3.2.1
Patch release fixing a decoder round-trip regression introduced in v3.2.0.
Fixed
- Decoder round-trip regression: quoted string values containing
[or{— for examplek: "a[3]b", or log lines carrying ANSI escape sequences such as"�[31m…"— were misread as array headers and raisedSyntaxException: Unterminated quoted stringon decode, so the encoder's own output could not be decoded back. Header detection now locates the:separator and the[/{markers outside quoted spans, so encoder output round-trips throughToon::decode()for every string value. The regression was introduced in v3.2.0; v3.1.0 was unaffected.
Internal
- Added comprehensive bidirectional round-trip test coverage (
tests/Spec/RoundTripSpecialStringsTest.php,tests/Spec/ComprehensiveRoundTripTest.php,tests/Spec/MalformedHeaderDecodeTest.php); line coverage raised from 90% to 96%. - Removed dead code (an orphaned validator cluster and unused
DelimiterParserhelpers) with no change to the public decode path.
Full Changelog: v3.2.0...v3.2.1