From 908778078736bd36f7a60a2d576d415cb8e000fa Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 22 May 2021 07:31:18 +0100 Subject: gentoo resync : 22.05.2021 --- .../files/pecl-http-4.1.0-use-getenv.patch | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 dev-php/pecl-http/files/pecl-http-4.1.0-use-getenv.patch (limited to 'dev-php/pecl-http/files') 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 +AuthorDate: Tue May 18 19:55:47 2021 +0200 +Commit: Thomas Deutschmann +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; + } -- cgit v1.2.3