diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-05-18 18:37:00 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-05-18 20:37:49 +0200 |
commit | 6f3b5fae4803d71534ec4832b5a12b73b3054301 (patch) | |
tree | 7015e363d97fd75f0ca2bf33c3dd47d035a355ed /dev-php/pecl-http/files | |
parent | dev-java/velocity: removed obsolete and vulnerable 1.7-r2 (diff) | |
download | gentoo-6f3b5fae4803d71534ec4832b5a12b73b3054301.tar.gz gentoo-6f3b5fae4803d71534ec4832b5a12b73b3054301.tar.bz2 gentoo-6f3b5fae4803d71534ec4832b5a12b73b3054301.zip |
dev-php/pecl-http: bump to v4.1.0
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'dev-php/pecl-http/files')
-rw-r--r-- | dev-php/pecl-http/files/pecl-http-4.1.0-use-getenv.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-php/pecl-http/files/pecl-http-4.1.0-use-getenv.patch b/dev-php/pecl-http/files/pecl-http-4.1.0-use-getenv.patch new file mode 100644 index 000000000000..c3ad7d968360 --- /dev/null +++ b/dev-php/pecl-http/files/pecl-http-4.1.0-use-getenv.patch @@ -0,0 +1,25 @@ +commit a4f66fb42bb5203e9d1897a6cf554aa702ce0380 +Author: Thomas Deutschmann <whissi@gentoo.org> +AuthorDate: Tue May 18 19:55:47 2021 +0200 +Commit: Thomas Deutschmann <whissi@gentoo.org> +CommitDate: Tue May 18 19:55:47 2021 +0200 + + tests: use getenv() to access environment variable + + Fixes + + Warning: Undefined array key "PATH" in pecl-http-4.1.0/work/php8.0/tests/skipif.inc on line 56 + +diff --git a/tests/skipif.inc b/tests/skipif.inc +index 51272fb..76c3bd7 100644 +--- 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; + } |