/hphp/test/zend/good/ext/sockets/tests/socket_select-wrongparams-4.php
PHP | 15 lines | 14 code | 1 blank | 0 comment | 3 complexity | 5815d8f0c6dd97a14d11b20008121427 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?hh <<__EntryPoint>> function main(): void {
- $sockets = varray[];
- if (strtolower(substr(PHP_OS, 0, 3)) == 'win') {
- $domain = AF_INET;
- } else {
- $domain = AF_UNIX;
- }
- socket_create_pair($domain, SOCK_STREAM, 0, inout $sockets);
- $write = null;
- $except = null;
- $time = 0;
- $usec = 2000000;
- var_dump(socket_select(inout $sockets, inout $write, inout $except, $time, $usec));
- }