summaryrefslogtreecommitdiff
path: root/ext/standard/tests/streams/bug72857.phpt
blob: 7b71c269f4c9816a055837401652b49f83903c0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Bug #72857 stream_socket_recvfrom read access violation
--FILE--
<?php
	$fname = __DIR__ . DIRECTORY_SEPARATOR . "stream_socket_recvfrom.tmp";
	$fp0 = fopen($fname, 'w');
	$v2=10;
	$v3=STREAM_PEEK;
	$v4="A";

	var_dump(stream_socket_recvfrom($fp0,$v2,$v3,$v4), $v4);

	fclose($fp0);
	unlink($fname);
?>
==DONE==
--EXPECT--
bool(false)
NULL
==DONE==