PageRenderTime 45ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/bad/ext/sockets/tests/socket_create_pair.php

http://github.com/facebook/hiphop-php
PHP | 9 lines | 9 code | 0 blank | 0 comment | 3 complexity | 52439485d6b6e77307c426617fca030b 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
  1. <?php
  2. $sockets = array();
  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, $sockets);
  9. var_dump($sockets);