jani Sat, 25 Jul 2009 14:52:52 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=286305
Log: - Fix bad environment usage Changed paths: U php/php-src/branches/PHP_5_2/ext/curl/tests/curl_setopt_array_basic.phpt U php/php-src/branches/PHP_5_3/ext/curl/tests/curl_setopt_array_basic.phpt U php/php-src/trunk/ext/curl/tests/curl_setopt_array_basic.phpt Modified: php/php-src/branches/PHP_5_2/ext/curl/tests/curl_setopt_array_basic.phpt =================================================================== --- php/php-src/branches/PHP_5_2/ext/curl/tests/curl_setopt_array_basic.phpt 2009-07-25 14:49:17 UTC (rev 286304) +++ php/php-src/branches/PHP_5_2/ext/curl/tests/curl_setopt_array_basic.phpt 2009-07-25 14:52:52 UTC (rev 286305) @@ -15,9 +15,9 @@ */ // 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 Modified: php/php-src/branches/PHP_5_3/ext/curl/tests/curl_setopt_array_basic.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/curl/tests/curl_setopt_array_basic.phpt 2009-07-25 14:49:17 UTC (rev 286304) +++ php/php-src/branches/PHP_5_3/ext/curl/tests/curl_setopt_array_basic.phpt 2009-07-25 14:52:52 UTC (rev 286305) @@ -15,9 +15,9 @@ */ // 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 Modified: php/php-src/trunk/ext/curl/tests/curl_setopt_array_basic.phpt =================================================================== --- php/php-src/trunk/ext/curl/tests/curl_setopt_array_basic.phpt 2009-07-25 14:49:17 UTC (rev 286304) +++ php/php-src/trunk/ext/curl/tests/curl_setopt_array_basic.phpt 2009-07-25 14:52:52 UTC (rev 286305) @@ -15,9 +15,9 @@ */ // 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
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php