1--TEST-- 2curl_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'] < 0x070c00) { 10 exit("skip: test works only with curl >= 7.12.0"); 11} 12?> 13--FILE-- 14<?php 15 16var_dump(strtolower(curl_multi_strerror(CURLM_OK))); 17var_dump(strtolower(curl_multi_strerror(CURLM_BAD_HANDLE))); 18 19?> 20--EXPECT-- 21string(8) "no error" 22string(20) "invalid multi handle" 23