[php-src] PR #17978: Simplify array_any(), array_all(), array_find(), array_find_key()

From: Date: Wed, 05 Mar 2025 19:39:08 +0000
Subject: [php-src] PR #17978: Simplify array_any(), array_all(), array_find(), array_find_key()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-30976@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/17978 Author: nielsdos By returning something more semantically meaningful that SUCCESS/FAILURE we can avoid refcounting for array_all() and array_any(). Also we can avoid resetting the input values to UNDEF. Benchmarks didn't really indicate a notable performance change, I got ~1% but that might be noise too. The motivation for this PR is simplification, not necessarily performance.

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