1--TEST--
2curl_multi_errno and curl_multi_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'] < 0x070f04) {
10	exit("skip: test works only with curl >= 7.15.4");
11}
12?>
13--FILE--
14<?php
15
16$mh = curl_multi_init();
17$errno = curl_multi_errno($mh);
18echo $errno . PHP_EOL;
19echo curl_multi_strerror($errno) . PHP_EOL;
20
21@curl_multi_setopt($mh, -1, -1);
22$errno = curl_multi_errno($mh);
23echo $errno . PHP_EOL;
24echo curl_multi_strerror($errno) . PHP_EOL;
25?>
26--EXPECTF--
270
28No error
296
30Unknown option
31