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--FILE-- 6<?php 7$serverUri = "tcp://127.0.0.1:31854"; 8$sock = stream_socket_server($serverUri, $errno, $errstr); 9$sockLen = 1500; 10 11var_dump(stream_socket_recvfrom($sock, $sockLen)); 12var_dump(stream_socket_recvfrom($sock, $sockLen, STREAM_OOB)); 13var_dump(stream_socket_recvfrom($sock, $sockLen, STREAM_PEEK)); 14?> 15--CLEAN-- 16<?php 17fclose($sock); 18unset($serverUri); 19unset($clientFlags); 20unset($sock); 21unset($sockLen); 22unset($errno); 23unset($errstr); 24?> 25--EXPECT-- 26bool(false) 27bool(false) 28bool(false) 29