12345678910111213141516171819202122232425262728293031 |
- --TEST--
- Test curl_multi_init()
- --CREDITS--
- Mark van der Velden
- #testfest Utrecht 2009
- --SKIPIF--
- <?php if (!extension_loaded("curl")) print "skip"; ?>
- --FILE--
- <?php
- /* Prototype : resource curl_multi_init(void)
- * Description : Returns a new cURL multi handle
- * Source code : ext/curl/multi.c
- * Test documentation: http://wiki.php.net/qa/temp/ext/curl
- */
- // start testing
- echo "*** Testing curl_multi_init(void); ***\n";
- //create the multiple cURL handle
- $mh = curl_multi_init();
- var_dump($mh);
- curl_multi_close($mh);
- var_dump($mh);
- ?>
- ===DONE===
- --EXPECTF--
- *** Testing curl_multi_init(void); ***
- resource(%d) of type (curl_multi)
- resource(%d) of type (Unknown)
- ===DONE===
|