curl_multi_select_basic1.phpt 639 B

123456789101112131415161718192021222324252627
  1. --TEST--
  2. Test curl_multi_select()
  3. --CREDITS--
  4. Ivo Jansch <ivo@ibuildings.com>
  5. #testfest Utrecht 2009
  6. --SKIPIF--
  7. <?php if (!extension_loaded("curl")) print "skip"; ?>
  8. --FILE--
  9. <?php
  10. /* Prototype : resource curl_multi_select($mh, $timeout=1.0])
  11. * Description : Get all the sockets associated with the cURL extension, which can then be
  12. * "selected"
  13. * Source code : ?
  14. * Test documentation: http://wiki.php.net/qa/temp/ext/curl
  15. */
  16. //create the multiple cURL handle
  17. $mh = curl_multi_init();
  18. echo curl_multi_select($mh)."\n";
  19. curl_multi_close($mh);
  20. ?>
  21. ===DONE===
  22. --EXPECTF--
  23. %r(0|-1)%r
  24. ===DONE===