Added testcase for bug #30362

This commit is contained in:
foobar 2005-04-04 18:06:16 +00:00
parent 95f860d025
commit 28b13f50e6
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,26 @@
--TEST--
Bug #30362 (stream_get_line() not working as documented)
--FILE--
<?php
$resource = fopen(dirname(__FILE__).'/bug30362.txt', 'rb');
for ($i = 0; ($i < 10) && !feof($resource); ++$i ) {
$a = "Y";
$line = stream_get_line($resource, 50, $a);
echo $line . "\n";
}
fclose($resource);
?>
--EXPECT--
111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111

View file

@ -0,0 +1,2 @@
111Y111111111Y111111111Y111111111Y111111111Y111111111Y111111111Y111111111Y111111111Y111111111