Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #29571 [Yaml] ensures that the mb_internal_encoding is reset to i…
…ts initial value (Jörn Lang) This PR was merged into the 3.4 branch. Discussion ---------- [Yaml] ensures that the mb_internal_encoding is reset to its initial value | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | When `Symfony\Component\Yaml\Inline::parse` sets the internal encoding to ASCII and the method does an early return or throws an exception, the internal encoding would not be reset. This Patch ensures the reset of the encoding by moving it into a finally block. Commits ------- 56ab129 [Yaml] ensures that the mb_internal_encoding is reset to its initial value
- Loading branch information