[php-src] PR #13876: fix group/passwd api misuse if ZTS
| From: | crrodriguez | Date: | Wed, 03 Apr 2024 00:32:30 +0000 |
| Subject: | [php-src] PR #13876: fix group/passwd api misuse if ZTS | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25623@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13876
Author: crrodriguez
This API is goofy and easy to misuse, the actual buffer size is unknown and the return of sysconf
specifies an *initial buffer size*
One has to iterate until function does not return ERANGE.
Currently it works just because the initial buffer size is "enough" most of time.