1--TEST--
2curl_strerror basic test
3--SKIPIF--
4<?php
5if (!extension_loaded("curl")) {
6        exit("skip curl extension not loaded");
7}
8?>
9--FILE--
10<?php
11
12var_dump(strtolower(curl_strerror(CURLE_OK)));
13var_dump(strtolower(curl_strerror(CURLE_UNSUPPORTED_PROTOCOL)));
14var_dump(strtolower(curl_strerror(-1)));
15
16?>
17--EXPECT--
18string(8) "no error"
19string(20) "unsupported protocol"
20string(13) "unknown error"
21