1--TEST--
2string stream_socket_recvfrom ( resource $socket , int $length [, int $flags = 0 [, string &$address ]] );
3--CREDITS--
4marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
5--SKIPIF--
6<?php
7if (phpversion() < "5.3.0") {
8  die('SKIP php version so lower.');
9}
10?>
11--FILE--
12<?php
13$serverUri = "tcp://127.0.0.1:31854";
14$sock = stream_socket_server($serverUri, $errno, $errstr);
15$sockLen = 1500;
16
17var_dump(stream_socket_recvfrom($sock, $sockLen));
18var_dump(stream_socket_recvfrom($sock, $sockLen, STREAM_OOB));
19var_dump(stream_socket_recvfrom($sock, $sockLen, STREAM_PEEK));
20?>
21--CLEAN--
22<?php
23fclose($sock);
24unset($serverUri);
25unset($clientFlags);
26unset($sock);
27unset($sockLen);
28unset($errno);
29unset($errstr);
30?>
31--EXPECT--
32bool(false)
33bool(false)
34bool(false)
35