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--EXPECT--
19array(2) {
20  [0]=>
21  resource(4) of type (Socket)
22  [1]=>
23  resource(5) of type (Socket)
24}
25