[php-src] PR #21100: ext/standard: `array_filter` `$mode` param follow-up

From: Date: Sat, 31 Jan 2026 13:18:21 +0000
Subject: [php-src] PR #21100: ext/standard: `array_filter` `$mode` param follow-up
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-34745@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/21100 Author: Ayesh In GH-15647, the array_filter function was changed to throw a ValueError exception when the $mode parameter receives an invalid. Additionally, it declares a new ARRAY_FILTER_USE_VALUE, assigned (int 1) to it. This changes the default value of the array_filter function's $mode parameter to use the new constant, changing it from int $mode = 0 to int $mode = ARRAY_FILTER_USE_KEY). Additionally, this adds the new constant to the UPGRADING file.

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