2 Bug#54946 stream_get_contents infinite loop
5 $filename = tempnam(__DIR__, "phpbug");
6 $stream = fopen($filename, "w"); // w or a
7 $retval = stream_get_contents($stream, 1, 1);
14 $filename = tempnam(__DIR__, "phpbug2");
16 $stream = fopen($filename, "a");
17 $retval = stream_get_contents($stream, 1, 1);
24 $filename = tempnam(__DIR__, "phpbug3");
26 $stream = fopen($filename, "a");
28 $retval = stream_get_contents($stream, 1);