mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
7aacc705d0
Closes GH-5958
16 lines
309 B
PHP
16 lines
309 B
PHP
--TEST--
|
|
Bug #46147 (after stream seek, appending stream filter reads incorrect data)
|
|
--FILE--
|
|
<?php
|
|
$fp = tmpfile();
|
|
fwrite($fp, "this is a lowercase string.\n");
|
|
fseek($fp, 5);
|
|
stream_filter_append($fp, "string.toupper");
|
|
while (!feof($fp)) {
|
|
echo fread($fp, 5);
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
IS A LOWERCASE STRING.
|