--TEST--
curl_multi_setopt basic test
--SKIPIF--
+<?php
if (!extension_loaded("curl")) {
exit("skip curl extension not loaded");
}
if ($curl_version['version_number'] < 0x071000) {
exit("skip: test works only with curl >= 7.16.0");
}
+?>
--FILE--
<?php
--TEST--
curl_multi_strerror basic test
--SKIPIF--
+<?php
if (!extension_loaded("curl")) {
exit("skip curl extension not loaded");
}
if ($curl_version['version_number'] < 0x070c00) {
exit("skip: test works only with curl >= 7.12.0");
}
+?>
--FILE--
<?php
-var_dump(curl_multi_strerror(CURLM_OK));
-var_dump(curl_multi_strerror(CURLM_BAD_HANDLE));
+var_dump(strtolower(curl_multi_strerror(CURLM_OK)));
+var_dump(strtolower(curl_multi_strerror(CURLM_BAD_HANDLE)));
?>
--EXPECTF--
-string(8) "No error"
-string(20) "Invalid multi handle"
+string(8) "no error"
+string(20) "invalid multi handle"
--TEST--
curl_share_setopt basic test
--SKIPIF--
+<?php
if (!extension_loaded("curl")) {
exit("skip curl extension not loaded");
}
+?>
--FILE--
<?php
--TEST--
curl_strerror basic test
--SKIPIF--
+<?php
if (!extension_loaded("curl")) {
exit("skip curl extension not loaded");
}
if ($curl_version['version_number'] < 0x070c00) {
exit("skip: test works only with curl >= 7.12.0");
}
+?>
--FILE--
<?php
-var_dump(curl_strerror(CURLE_OK));
-var_dump(curl_strerror(CURLE_UNSUPPORTED_PROTOCOL));
-var_dump(curl_strerror(-1));
+var_dump(strtolower(curl_strerror(CURLE_OK)));
+var_dump(strtolower(curl_strerror(CURLE_UNSUPPORTED_PROTOCOL)));
+var_dump(strtolower(curl_strerror(-1)));
?>
--EXPECTF--
-string(8) "No error"
-string(20) "Unsupported protocol"
-string(13) "Unknown error"
+string(8) "no error"
+string(20) "unsupported protocol"
+string(13) "unknown error"