Annotation of embedaddon/php/ext/standard/tests/file/bug30362.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #30362 (stream_get_line() not working as documented)
! 3: --FILE--
! 4: <?php
! 5:
! 6: $resource = fopen(dirname(__FILE__).'/bug30362.txt', 'rb');
! 7:
! 8: for ($i = 0; ($i < 10) && !feof($resource); ++$i ) {
! 9: $a = "Y";
! 10: $line = stream_get_line($resource, 50, $a);
! 11: echo $line . "\n";
! 12: }
! 13: fclose($resource);
! 14:
! 15: ?>
! 16: --EXPECT--
! 17: 111
! 18: 111111111
! 19: 111111111
! 20: 111111111
! 21: 111111111
! 22: 111111111
! 23: 111111111
! 24: 111111111
! 25: 111111111
! 26: 111111111
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>