1--TEST--
2curl_multi_close return false when suplied resorce not valid cURL multi handle
3--SKIPIF--
4<?php
5if (!extension_loaded('curl')) print 'skip';
6?>
7--FILE--
8<?php
9$cmh = curl_multi_init();
10var_dump($cmh);
11$multi_close_result = curl_multi_close($cmh);
12var_dump($multi_close_result);
13var_dump($cmh);
14$bad_mh_close_result = curl_multi_close($cmh);
15var_dump($bad_mh_close_result);
16?>
17===DONE===
18--EXPECTF--
19resource(%d) of type (curl_multi)
20NULL
21resource(%d) of type (Unknown)
22
23Warning: curl_multi_close(): supplied resource is not a valid cURL Multi Handle resource in %s on line %d
24bool(false)
25===DONE===
26