summaryrefslogtreecommitdiff
path: root/ext/standard/tests/streams/bug72857.phpt
blob: e91e6fa4ea3b6ffd7db43661138bd4b2c47b7c28 (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 = dirname(__FILE__) . 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==