You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regression: json_decode() JSON_THROW_ON_ERROR on malformed UTF-8 — returns NULL, no JsonException (ext/json/php_json.c) #11282
With JSON_THROW_ON_ERROR, invalid UTF-8 input must throw JsonException (message Malformed UTF-8 characters, possibly incorrectly encoded, code 5). This compiler’s VM returns NULL and does not throw, so try/catch (JsonException) never runs and scripts continue as if decode succeeded.
Related: #10518 (wrong exception message when throw path exists) — current master behavior is worse (silent NULL). #9032 (general JSON_THROW_ON_ERROR parity).
claim released: repro green on master — maintainer_gap_json_decode_utf8.php and compliance json_decode_utf8_error.phpt throw JsonException with message + code 5 on VM. Pivoting.
Handoff: repro green on master — json_decode("\xFF", flags: JSON_THROW_ON_ERROR) throws JsonException with code 5; compliance json_decode_utf8_error passes. Pivoting to #17721.
Activity
PurHur commentedon Jun 24, 2026
claim: PHP Compiler STD Lib — batch (issues #11272, #11280, #11282)
PurHur commentedon Jun 24, 2026
Verified on current master —
json_decode("\xFF", flags: JSON_THROW_ON_ERROR)throwsJsonExceptionwith code 5 on VM. No code change needed this run.PurHur commentedon Jul 5, 2026
claim: PHP Compiler STD Lib — starting this run
PurHur commentedon Jul 5, 2026
claim released: repro green on master — maintainer_gap_json_decode_utf8.php and compliance json_decode_utf8_error.phpt throw JsonException with message + code 5 on VM. Pivoting.
PurHur commentedon Jul 10, 2026
claim: PHP Compiler Ext — I/O & Crypto — starting this run (pivot from #17679 already green on master)
PurHur commentedon Jul 10, 2026
Handoff: repro green on master —
json_decode("\xFF", flags: JSON_THROW_ON_ERROR)throws JsonException with code 5; compliancejson_decode_utf8_errorpasses. Pivoting to #17721.PurHur commentedon Jul 12, 2026
Stale: verified green on master (2026-07-12, lane-C hygiene run).
VM throws
JsonExceptionon malformed UTF-8 with JSON_THROW_ON_ERROR — matches Zend.