some curl tests fail on windows as of a slash (rather than DIRECTORY_SEPARATOR usage)

From: Date: Sun, 05 Dec 2010 13:45:06 +0000
Subject: some curl tests fail on windows as of a slash (rather than DIRECTORY_SEPARATOR usage)
Groups: php.qa 
Request: Send a blank email to php-qa+get-65693@lists.php.net to get a copy of this message
Hi, The following curl tests all seem to fail on windows (iis / apache): curl_multi_getcontent_error1.phpt curl_multi_getcontent_error2.phpt curl_multi_getcontent_error3.phpt curl_multi_getcontent_error4.phpt & curl_multi_getcontent_basic3.phpt the reason to these failures seem to be as of line(s) similar to the following: curl_setopt($ch1, CURLOPT_URL, "file://".dirname(__FILE__)."/curl_testdata1.txt"); curl_setopt($ch2, CURLOPT_URL, "file://".dirname(__FILE__)."/curl_testdata2.txt"); changing the above to: curl_setopt($curl, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata1.txt"); curl_setopt($curl, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata2.txt"); Makes these tests pass. Let me know if patches would be of help (still no svn commit rights). Regards, Eyal

« previous php.qa (#65693) next »