1--TEST--
2ext/sockets - socket_read- test with incorrect parameter
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    $s_c_l = socket_create_listen(0);
15    $s_c = socket_read($s_c_l, 25);
16    socket_close($s_c_l);
17?>
18--EXPECTF--
19Warning: socket_read(): unable to read from socket [%i]: %a in %s on line %d
20