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