summaryrefslogtreecommitdiff
path: root/ext/standard/tests/streams/bug72857.phpt
blob: a74dff9c7e7d9d962a5bfba504365ee3c36502c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--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);
?>
--EXPECT--
bool(false)
NULL