1--TEST-- 2socket_recvfrom overflow on length argument 3--EXTENSIONS-- 4sockets 5--SKIPIF-- 6<?php 7if (strtolower(substr(PHP_OS, 0, 3)) === 'win') { 8 die('skip not valid for Windows.'); 9} 10--FILE-- 11<?php 12$s = socket_create(AF_UNIX, SOCK_DGRAM, 0); 13$buf = $end = ""; 14var_dump(socket_recvfrom($s, $buf, PHP_INT_MAX, 0, $end)); 15var_dump(socket_recvfrom($s, $buf, -1, 0, $end)); 16?> 17--EXPECT-- 18bool(false) 19bool(false) 20