socket_select-wrongparams-2.phpt 432 B

12345678910111213141516171819202122
  1. --TEST--
  2. Test parameter handling in socket_select().
  3. --EXTENSIONS--
  4. sockets
  5. --FILE--
  6. <?php
  7. $sockets = null;
  8. $write = null;
  9. $except = null;
  10. $time = 0;
  11. try {
  12. socket_select($sockets, $write, $except, $time);
  13. } catch (ValueError $exception) {
  14. echo $exception->getMessage() . "\n";
  15. }
  16. ?>
  17. --EXPECT--
  18. socket_select(): At least one array argument must be passed
  19. --CREDITS--
  20. Till Klampaeckel, till@php.net
  21. Berlin TestFest 2009