[php-src] PR #24560: Fix GH-23876: JSON_INVALID_UTF8_IGNORE and JSON_INVALID_UTF8_SUBSTITUTE are mutually exclusive
| From: | HoneyTyagii | Date: | Thu, 22 Oct 2026 16:30:54 +0000 |
| Subject: | [php-src] PR #24560: Fix GH-23876: JSON_INVALID_UTF8_IGNORE and JSON_INVALID_UTF8_SUBSTITUTE are mutually exclusive | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-39722@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/24560
Author: HoneyTyagii
json_decode() previously accepted both JSON_INVALID_UTF8_IGNORE and JSON_INVALID_UTF8_SUBSTITUTE at
the same time, silently using substitution. Validate that the two flags are not combined and raise a
ValueError instead.