]> granicus.if.org Git - php/commitdiff
- Fix bad environment usage
authorJani Taskinen <jani@php.net>
Sat, 25 Jul 2009 14:52:52 +0000 (14:52 +0000)
committerJani Taskinen <jani@php.net>
Sat, 25 Jul 2009 14:52:52 +0000 (14:52 +0000)
ext/curl/tests/curl_setopt_array_basic.phpt

index 2aa73a6698b4289318474d6644285990504c2221..877079bca6f3b02e778ddf7baa960bb23de18cc4 100644 (file)
@@ -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