summaryrefslogtreecommitdiff
path: root/ext/standard/tests/streams/bug46147.phpt
blob: bed2ee5472bfdb2d8cdbbb21245e2951600c09f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--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.