/
proc
/
self
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
standard
/
tests
/
streams
/
File Upload :
llllll
Current File: //proc/self/root/usr/local/lsws/phpbuild/php-8.0.7/ext/standard/tests/streams/bug63240.phpt
--TEST-- Bug #63240: stream_get_line() return contains delimiter string --FILE-- <?php $fd = fopen('php://temp', 'r+'); $delimiter = 'MM'; $str = str_repeat('.', 8191) . $delimiter . "rest"; fwrite($fd, $str); rewind($fd); $line = stream_get_line($fd, 9000, $delimiter); var_dump(strlen($line)); $line = stream_get_line($fd, 9000, $delimiter); var_dump($line); ?> --EXPECT-- int(8191) string(4) "rest"
Copyright ©2k19 -
Hexid
|
Tex7ure