From: Micah Andersen Date: Thu, 18 Jul 2019 20:02:05 +0000 (-0400) Subject: Added a note about PHP environment variables to the PHP test file (#16) X-Git-Tag: mod_authnz_external-3.3.3~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b3a65a2c0fd36d0fc9a9fe3b6c5dac75a0359f22;p=apache-authnz-external Added a note about PHP environment variables to the PHP test file (#16) --- diff --git a/mod_authnz_external/test/test.pipe.php b/mod_authnz_external/test/test.pipe.php index 7d19c24..34ad748 100755 --- a/mod_authnz_external/test/test.pipe.php +++ b/mod_authnz_external/test/test.pipe.php @@ -20,6 +20,8 @@ $pass = trim(fgets(STDIN)); // Print them to the error_log file fwrite(STDERR, $prog . ": user='" . $user . "' pass='" . $pass . "'\n"); +// NOTE: $_ENV is only populated if the "variables_order" php.ini setting +// contains "E". Alternatively use getenv(). See GitHub issue #16. foreach ($_ENV as $k => $v) { fwrite(STDERR, $prog . ': ' . $k . '=' . $v . "\n");