/hphp/test/zend/good/ext/sockets/tests/socket_select-wrongparams-3.php

http://github.com/facebook/hiphop-php · PHP · 14 lines · 13 code · 1 blank · 0 comment · 3 complexity · 57768d477d1cbbbf12700b071be1f63b MD5 · raw file

  1. <?hh <<__EntryPoint>> function main(): void {
  2. $sockets = varray[];
  3. if (strtolower(substr(PHP_OS, 0, 3)) == 'win') {
  4. $domain = AF_INET;
  5. } else {
  6. $domain = AF_UNIX;
  7. }
  8. socket_create_pair($domain, SOCK_STREAM, 0, inout $sockets);
  9. $write = null;
  10. $except = null;
  11. $time = varray[];
  12. var_dump(socket_select(inout $sockets, inout $write, inout $except, $time));
  13. }