php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /php-7.1.11/ext/standard/tests/streams/ |
files >> //php-7.1.11/ext/standard/tests/streams/bug60106.phpt |
--TEST-- Bug#60106 (stream_socket_server silently truncates long unix socket paths) --SKIPIF-- <?php if( substr(PHP_OS, 0, 3) == "WIN" ) die("skip. Do not run on Windows"); ?> --FILE-- <?php error_reporting(E_ALL | E_NOTICE); $socket_file = "/tmp/" . str_repeat("a", 512); function get_truncated_socket_filename($errno, $errmsg, $file, $line) { global $socket_file; print_r ($errmsg); preg_match("#maximum allowed length of (\d+) bytes#", $errmsg, $matches); $socket_file = substr($socket_file, 0, intval($matches[1]) - 1); } set_error_handler("get_truncated_socket_filename", E_NOTICE); stream_socket_server("unix://" . $socket_file); unlink($socket_file); ?> --EXPECTF-- stream_socket_server(): socket path exceeded the maximum allowed length of %d bytes and was truncatedy~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`