[php-src] PR #18497: Cleanup php_posix_group_to_array()
| From: | nielsdos | Date: | Sun, 04 May 2025 17:34:47 +0000 |
| Subject: | [php-src] PR #18497: Cleanup php_posix_group_to_array() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-31615@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/18497
Author: nielsdos
This function can be static, and the error checks are pointless:
1. It's guaranteed that the return value is an array by now, as it is always preceded by
array_init(return_value).
2. The null check for g is pointless as every callee already handles that in a better way.