projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
(from parent 1:
a98c731
)
Merge pull request #113 from Whissi/fix-undefined-array-key-PATH
author
Michael Wallner
<mike@php.net>
Tue, 1 Jun 2021 08:44:01 +0000
(10:44 +0200)
committer
GitHub
<noreply@github.com>
Tue, 1 Jun 2021 08:44:01 +0000
(10:44 +0200)
tests: use getenv() to access environment variable
tests/skipif.inc
patch
|
blob
|
history
diff --git
a/tests/skipif.inc
b/tests/skipif.inc
index 51272fbe575b16705e7cb24564e9154e494d6331..76c3bd793576f73639a62860629055f7c79c6367 100644
(file)
--- a/
tests/skipif.inc
+++ b/
tests/skipif.inc
@@
-53,7
+53,7
@@
function skip_http2_test($message = "skip need http2 support") {
if (!(http\Client\Curl\FEATURES & http\Client\Curl\Features\HTTP2)) {
die("$message (FEATURES & HTTP2)\n");
}
- foreach (explode(":",
$_ENV["PATH"]
) as $path) {
+ foreach (explode(":",
getenv("PATH")
) as $path) {
if (is_executable($path . "/nghttpd")) {
return;
}