1--TEST--
2Crash inside stream_get_line(), when length=0
3--FILE--
4<?php
5$path = __DIR__ . '/test.html';
6
7file_put_contents($path, "foo<br>bar<br>foo");
8$fp = fopen($path, "r");
9while ($fp && !feof($fp)) {
10	echo stream_get_line($fp, 0, "<br>")."\n";
11}
12fclose($fp);
13@unlink($path);
14?>
15--EXPECT--
16foo
17bar
18foo
19