[php-src] PR #24123: ext/json: Stop encoding after a key fails to encode

From: Date: Sun, 04 Oct 2026 20:43:33 +0000
Subject: [php-src] PR #24123: ext/json: Stop encoding after a key fails to encode
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-39140@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/24123 Author: iliaal When an array or object key failed to encode, json_encode() carried on with the remaining values unless JSON_PARTIAL_OUTPUT_ON_ERROR was set, so jsonSerialize() still ran on later values and a later error could replace the one that caused the failure. Both key sites now bail out the same way a failed value already does; partial output is unchanged.

« previous php.git-pulls (#39140) next »