/hphp/test/zend/good/ext/sockets/tests/socket_select.php
http://github.com/facebook/hiphop-php · PHP · 13 lines · 12 code · 1 blank · 0 comment · 3 complexity · bbe39586d9724009837ba2dd9f7a05d5 MD5 · raw file
- <?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;
- var_dump(socket_select(inout $sockets, inout $write, inout $except, 0));
- }