Annotation of embedaddon/php/ext/standard/tests/streams/bug63240.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #63240: stream_get_line() return contains delimiter string
! 3: --FILE--
! 4: <?php
! 5: $fd = fopen('php://temp', 'r+');
! 6: $delimiter = 'MM';
! 7: $str = str_repeat('.', 8191) . $delimiter . "rest";
! 8: fwrite($fd, $str);
! 9: rewind($fd);
! 10: $line = stream_get_line($fd, 9000, $delimiter);
! 11: var_dump(strlen($line));
! 12: $line = stream_get_line($fd, 9000, $delimiter);
! 13: var_dump($line);
! 14: ?>
! 15: --EXPECT--
! 16: int(8191)
! 17: string(4) "rest"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>