/
proc
/
3430793
/
cwd
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
standard
/
tests
/
file
/
File Upload :
llllll
Current File: //proc/3430793/cwd/usr/local/lsws/phpbuild/php-8.0.7/ext/standard/tests/file/bug43522.phpt
--TEST-- Bug #43522 (stream_get_line() eats additional characters) --FILE-- <?php // 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ $fp = fopen(__FILE__, 'r'); // Open self DoTest($fp, 'ZZZ'); // test multi-char delimiter DoTest($fp, "Z"); // test single-char delimiter function DoTest($fp, $delim) { echo "Delimiter: " . $delim . "\n"; rewind($fp); echo "\t" . stream_get_line($fp, 10, $delim) . "\n"; echo "\t" . stream_get_line($fp, 10, $delim) . "\n"; } ?> --EXPECT-- Delimiter: ZZZ <?php // 1 234567890A Delimiter: Z <?php // 1 234567890A
Copyright ©2k19 -
Hexid
|
Tex7ure