Category
stdlib · php-src-strict
Problem
Zend ext/posix exposes posix_initgroups(string $username, int $group_id): bool. This compiler lacks it (function_exists → false). Last remaining common posix gap after getpgrp (with #6504/#6489 landed).
| Repro |
Zend 8.2+ |
VM (2026-07-16) |
function_exists('posix_initgroups') |
true |
false |
php-src reference
PHP implementation target
- Thin libc ABI
initgroups in PosixLibcThinAbi (write syscall — unavoidable; document in PR)
ext/posix/posix_initgroups.php + VM wrapper; string username via VmString::coerceStringBuiltinArg
- Prefer not growing
runtime/*.c
Repro
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh
php bin/vm.php -r "var_export(function_exists(\"posix_initgroups\")); echo PHP_EOL;"
'
Done when
Links
Category
stdlib· php-src-strictProblem
Zend
ext/posixexposesposix_initgroups(string $username, int $group_id): bool. This compiler lacks it (function_exists→ false). Last remaining common posix gap after getpgrp (with #6504/#6489 landed).function_exists('posix_initgroups')truephp-src reference
ext/posix/posix.c—PHP_FUNCTION(posix_initgroups)→initgroups()ext/posix/posix.stub.phpPHP implementation target
initgroupsinPosixLibcThinAbi(write syscall — unavoidable; document in PR)ext/posix/posix_initgroups.php+ VM wrapper; string username viaVmString::coerceStringBuiltinArgruntime/*.cRepro
Done when
posix_get_last_error.phptLinks