From a231624c6015ad07dd0cc9aba4ef9abe6743f62d Mon Sep 17 00:00:00 2001 From: Jani Taskinen Date: Sat, 25 Jul 2009 14:52:52 +0000 Subject: [PATCH] - Fix bad environment usage --- ext/curl/tests/curl_setopt_array_basic.phpt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/curl/tests/curl_setopt_array_basic.phpt b/ext/curl/tests/curl_setopt_array_basic.phpt index 2aa73a6698..877079bca6 100644 --- a/ext/curl/tests/curl_setopt_array_basic.phpt +++ b/ext/curl/tests/curl_setopt_array_basic.phpt @@ -15,9 +15,9 @@ Mattijs Hoitink mattijshoitink@gmail.com */ // Figure out what handler to use -if(!empty($_ENV['PHP_CURL_HTTP_REMOTE_SERVER'])) { +$host = getenv('PHP_CURL_HTTP_REMOTE_SERVER'); +if (!empty($host)) { // Use the set Environment variable - $host = $_ENV['PHP_CURL_HTTP_REMOTE_SERVER']; $url = "{$host}/get.php?test=get"; } else { // Create a temporary file for the test -- 2.40.0