[php-src] PR #19386: Use proper hash_spec_result enum for return values in ext/hash
| From: | alexandre-daubois | Date: | Wed, 06 Aug 2025 07:10:50 +0000 |
| Subject: | [php-src] PR #19386: Use proper hash_spec_result enum for return values in ext/hash | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32810@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/19386
Author: alexandre-daubois
ext/hash currently uses a mix of SUCCESS, FAILURE and custom return codes. I propose to
remove these magic numbers, define an enum for the return type.
I also removed a few elses to reduce complexity.