|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-02-05 18:50 UTC] david at davidfavor dot com
Description: ------------ Shell environment variables are not accessible via getenv() during tests. Test script: --------------- export MYSQL_TEST_PASSWD=... make test TESTS=ext/mysql*/tests/001.phpt Runs the mysql + mysqli connect tests and both are skipped. Tests are skipped showing... (using password: NO) Manually setting $passwd in connect.inc for both test sets runs all tests as expected. So MYSQL_TEST_PASSWD is ignored. Patchesrun-tests.php.diff (last revision 2012-02-07 20:36 UTC by tyrael@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 13:00:01 2025 UTC |
AFAIK getenv does work independently from variable_orders: foo=bar php -d variables_order=GPC -r 'echo $_ENV["foo"];echo getenv("foo");' outputs "bar" for me, so it works. Tyrael