1--TEST--
2curl_strerror basic test
3--SKIPIF--
4<?php
5if (!extension_loaded("curl")) {
6	    exit("skip curl extension not loaded");
7}
8$curl_version = curl_version();
9if ($curl_version['version_number'] < 0x070c00) {
10	exit("skip: test works only with curl >= 7.12.0");
11}
12?>
13--FILE--
14<?php
15
16var_dump(strtolower(curl_strerror(CURLE_OK)));
17var_dump(strtolower(curl_strerror(CURLE_UNSUPPORTED_PROTOCOL)));
18var_dump(strtolower(curl_strerror(-1)));
19
20?>
21--EXPECT--
22string(8) "no error"
23string(20) "unsupported protocol"
24string(13) "unknown error"
25