1--TEST--
2Test for socket_create_pair()
3--SKIPIF--
4<?php
5if (!extension_loaded('sockets')) {
6    die('SKIP The sockets extension is not loaded.');
7}
8--FILE--
9<?php
10$sockets = array();
11if (strtolower(substr(PHP_OS, 0, 3)) == 'win') {
12    $domain = AF_INET;
13} else {
14    $domain = AF_UNIX;
15}
16socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
17var_dump($sockets);
18?>
19--EXPECT--
20array(2) {
21  [0]=>
22  object(Socket)#1 (0) {
23  }
24  [1]=>
25  object(Socket)#2 (0) {
26  }
27}
28