[php-src] PR #25468: Fix the json_decode() and json_validate() depth upper bound message

From: Date: Sun, 15 Nov 2026 16:42:19 +0000
Subject: [php-src] PR #25468: Fix the json_decode() and json_validate() depth upper bound message
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40657@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25468 Author: lacatoire Both functions accept a $depth of INT_MAX but rejected larger values with "must be less than 2147483647". Say "less than or equal to" instead. To reproduce: ```php json_decode('[]', true, 2147483648); ``` Before: ``` ValueError: json_decode(): Argument #3 ($depth) must be less than 2147483647 ``` After: ``` ValueError: json_decode(): Argument #3 ($depth) must be less than or equal to 2147483647 ```

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