]> granicus.if.org Git - apache-authnz-external/commitdiff
Added a note about PHP environment variables to the PHP test file (#16)
authorMicah Andersen <micah@bimi.org>
Thu, 18 Jul 2019 20:02:05 +0000 (16:02 -0400)
committerMicah Andersen <micah@bimi.org>
Thu, 18 Jul 2019 20:05:11 +0000 (16:05 -0400)
mod_authnz_external/test/test.pipe.php

index 7d19c2436b06e6a9420fb2c82b8005d909de056e..34ad74806728851513b30454b18da369c4f33778 100755 (executable)
@@ -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");