1--TEST--
2ext/sockets - socket_set_block - basic test
3--CREDITS--
4Florian Anderiasch
5fa@php.net
6--SKIPIF--
7<?php
8    if (!extension_loaded('sockets')) {
9        die('skip sockets extension not available.');
10    }
11?>
12--FILE--
13<?php
14    $rand = rand(1,999);
15    $s_c_l = socket_create_listen(31330+$rand);
16    socket_set_nonblock($s_c_l);
17    var_dump($s_c_l);
18    #socket_accept($s_c_l);
19    socket_close($s_c_l);
20?>
21
22--EXPECTF--
23resource(%i) of type (Socket)
24
25