From 8a5ce6f16f403483929d13d7c3fa959ef0e90cab Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 14 Jun 2019 16:55:51 +0200 Subject: [PATCH] Make curl_multi_info_read.phpt more robust I don't think there's any need to make remote connections here (and bugs.php.net is down right now...) so just use local files instead. --- ext/curl/tests/curl_multi_info_read.phpt | 32 +++++++++++++++++------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/ext/curl/tests/curl_multi_info_read.phpt b/ext/curl/tests/curl_multi_info_read.phpt index 8a2d48918e..9f54e10b12 100644 --- a/ext/curl/tests/curl_multi_info_read.phpt +++ b/ext/curl/tests/curl_multi_info_read.phpt @@ -9,8 +9,8 @@ if (!extension_loaded('curl')) { print("skip"); } --FILE-- $url) { do { $status = curl_multi_exec($mh, $active); - $info = curl_multi_info_read($mh); - if (false !== $info) { - var_dump(is_array($info)); - } } while ($status === CURLM_CALL_MULTI_PERFORM || $active); +while ($info = curl_multi_info_read($mh)) { + var_dump($info); +} + foreach ($urls as $i => $url) { curl_close($conn[$i]); } ?> ---EXPECT-- -bool(true) -bool(true) +--EXPECTF-- +array(3) { + ["msg"]=> + int(%d) + ["result"]=> + int(%d) + ["handle"]=> + resource(%d) of type (curl) +} +array(3) { + ["msg"]=> + int(%d) + ["result"]=> + int(%d) + ["handle"]=> + resource(%d) of type (curl) +} -- 2.50.1