Category
stdlib / runtime
Problem
Zend getenv(string $name, bool $local_only = false) distinguishes variables set via putenv() (local_only=true) from inherited environment entries. This build accepts only one argument.
php-src reference
Repro (today)
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && php bin/vm.php test/repro-maintainer/getenv_local_only.php'
# LogicException: getenv() requires exactly one argument
./script/docker-exec.sh -- bash -lc 'php test/repro-maintainer/getenv_local_only.php'
# string(...) for both true/false when set via putenv
Scope (this repo)
| Module |
Path |
| VM |
ext/standard/getenv_.php |
| JIT |
ext/standard/JitEnv.php |
| Tests |
test/compliance/cases/stdlib/getenv_local_only.phpt |
Done when
Category
stdlib/runtimeProblem
Zend
getenv(string $name, bool $local_only = false)distinguishes variables set viaputenv()(local_only=true) from inherited environment entries. This build accepts only one argument.php-src reference
ext/standard/basic_functions.c—zif_getenv,local_onlyflagRepro (today)
Scope (this repo)
ext/standard/getenv_.phpext/standard/JitEnv.phptest/compliance/cases/stdlib/getenv_local_only.phptDone when
$local_onlyparameter honored (VM + JIT)./script/ci-fast.sh --filter getenv_local_onlygreen