]> granicus.if.org Git - php/commitdiff
curl_setopt() arg: using DIRECTORY_SEPARATOR rather then "/" to make windows tests...
authorEyal Teutsch <eyalt@php.net>
Wed, 8 Dec 2010 14:16:17 +0000 (14:16 +0000)
committerEyal Teutsch <eyalt@php.net>
Wed, 8 Dec 2010 14:16:17 +0000 (14:16 +0000)
ext/curl/tests/curl_multi_getcontent_basic3.phpt
ext/curl/tests/curl_multi_getcontent_error1.phpt
ext/curl/tests/curl_multi_getcontent_error2.phpt
ext/curl/tests/curl_multi_getcontent_error3.phpt
ext/curl/tests/curl_multi_getcontent_error4.phpt

index 45acbbee9d73760247c79f4fc148dc7bd2a65e40..bf17ab6b606c03f391f9a49f23946c8061a6d4f4 100644 (file)
@@ -17,7 +17,7 @@ if (!extension_loaded('curl')) print 'skip';
 
        //SET URL AND OTHER OPTIONS
        curl_setopt($ch1, CURLOPT_URL, "http://php.net/robots.txt");
-       curl_setopt($ch2, CURLOPT_URL, "file://".dirname(__FILE__)."/curl_testdata2.txt");
+       curl_setopt($ch2, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata2.txt");
        curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);
        
index 88de0d7d34b9b236d9ba374c8fd277414d7b8f3d..2fb11b3d9716498f95d5fc54e192dccdc1455e31 100644 (file)
@@ -16,8 +16,8 @@ if (!extension_loaded('curl')) print 'skip';
        $ch2=curl_init();
 
        //SET URL AND OTHER OPTIONS
-       curl_setopt($ch1, CURLOPT_URL, "file://".dirname(__FILE__)."/curl_testdata1.txt");
-       curl_setopt($ch2, CURLOPT_URL, "file://".dirname(__FILE__)."/curl_testdata2.txt");
+       curl_setopt($ch1, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata1.txt");
+       curl_setopt($ch2, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata2.txt");
        curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);
        
index ad837d8287ff84346f2d675ee4293409b2ff340e..0145d6a8face8345ff114174dfe03d0d9739de0d 100644 (file)
@@ -16,8 +16,8 @@ if (!extension_loaded('curl')) print 'skip';
        $ch2=curl_init();
 
        //SET URL AND OTHER OPTIONS
-       curl_setopt($ch1, CURLOPT_URL, "file://".dirname(__FILE__)."/curl_testdata1.txt");
-       curl_setopt($ch2, CURLOPT_URL, "file://".dirname(__FILE__)."/curl_testdata2.txt");
+       curl_setopt($ch1, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata1.txt");
+       curl_setopt($ch2, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata2.txt");
        curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);
        
index 6ffc6b73609044d7febae7a00bd0d86dbfd20c6d..2ad14804ba35f512b1196fbff87ea52daf7c6b7e 100644 (file)
@@ -16,8 +16,8 @@ if (!extension_loaded('curl')) print 'skip';
        $ch2=curl_init();
 
        //SET URL AND OTHER OPTIONS
-       curl_setopt($ch1, CURLOPT_URL, "file://".dirname(__FILE__)."/curl_testdata1.txt");
-       curl_setopt($ch2, CURLOPT_URL, "file://".dirname(__FILE__)."/curl_testdata2.txt");
+       curl_setopt($ch1, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata1.txt");
+       curl_setopt($ch2, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata2.txt");
        curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);
        
index 68928647af122e201132794d2e20b15fb751ef47..68bda37fe49c6b2d104efdb3fb61526166865283 100644 (file)
@@ -16,8 +16,8 @@ if (!extension_loaded('curl')) print 'skip';
        $ch2=curl_init();
 
        //SET URL AND OTHER OPTIONS
-       curl_setopt($ch1, CURLOPT_URL, "file://".dirname(__FILE__)."/curl_testdata1.txt");
-       curl_setopt($ch2, CURLOPT_URL, "file://".dirname(__FILE__)."/curl_testdata2.txt");
+       curl_setopt($ch1, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata1.txt");
+       curl_setopt($ch2, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata2.txt");
        curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);