svn: /php/php-src/ branches/PHP_5_2/ext/curl/tests/bug48207.phpt branches/PHP_5_3/ext/curl/tests/bug48207.phpt trunk/ext/curl/tests/bug48207.phpt
| From: | Jani Taskinen | Date: | Sat, 25 Jul 2009 14:20:38 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_2/ext/curl/tests/bug48207.phpt branches/PHP_5_3/ext/curl/tests/bug48207.phpt trunk/ext/curl/tests/bug48207.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-59783@lists.php.net to get a copy of this message | ||
jani Sat, 25 Jul 2009 14:20:38 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=284749
Log:
- Fix test
Changed paths:
U php/php-src/branches/PHP_5_2/ext/curl/tests/bug48207.phpt
U php/php-src/branches/PHP_5_3/ext/curl/tests/bug48207.phpt
U php/php-src/trunk/ext/curl/tests/bug48207.phpt
Modified: php/php-src/branches/PHP_5_2/ext/curl/tests/bug48207.phpt
===================================================================
--- php/php-src/branches/PHP_5_2/ext/curl/tests/bug48207.phpt 2009-07-25 13:09:03 UTC (rev 284748)
+++ php/php-src/branches/PHP_5_2/ext/curl/tests/bug48207.phpt 2009-07-25 14:20:38 UTC (rev 284749)
@@ -14,10 +14,11 @@
*/
// 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
- $url = $_ENV['PHP_CURL_HTTP_REMOTE_SERVER'];
+ $url = "$host/get.php";
} else {
@@ -42,4 +43,5 @@
?>
--EXPECTF--
Warning: curl_setopt(): the provided file handle is not writable in %s on line %d
-%S
+Hello World!
+Hello World!
Modified: php/php-src/branches/PHP_5_3/ext/curl/tests/bug48207.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/curl/tests/bug48207.phpt 2009-07-25 13:09:03 UTC (rev 284748)
+++ php/php-src/branches/PHP_5_3/ext/curl/tests/bug48207.phpt 2009-07-25 14:20:38 UTC (rev 284749)
@@ -14,10 +14,11 @@
*/
// 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
- $url = $_ENV['PHP_CURL_HTTP_REMOTE_SERVER'];
+ $url = "$host/get.php";
} else {
@@ -42,4 +43,5 @@
?>
--EXPECTF--
Warning: curl_setopt(): the provided file handle is not writable in %s on line %d
-%S
+Hello World!
+Hello World!
Modified: php/php-src/trunk/ext/curl/tests/bug48207.phpt
===================================================================
--- php/php-src/trunk/ext/curl/tests/bug48207.phpt 2009-07-25 13:09:03 UTC (rev 284748)
+++ php/php-src/trunk/ext/curl/tests/bug48207.phpt 2009-07-25 14:20:38 UTC (rev 284749)
@@ -14,10 +14,11 @@
*/
// 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
- $url = $_ENV['PHP_CURL_HTTP_REMOTE_SERVER'];
+ $url = "$host/get.php";
} else {
@@ -42,4 +43,5 @@
?>
--EXPECTF--
Warning: curl_setopt(): the provided file handle is not writable in %s on line %d
-%S
+Hello World!
+Hello World!