1--TEST--
2Bug #76859 (stream_get_line skips data if used with filters)
3--FILE--
4<?php
5
6$data = '123';
7
8$fh = fopen('php://memory', 'r+b');
9fwrite($fh, $data);
10rewind($fh);
11stream_filter_append($fh, 'string.rot13', STREAM_FILTER_READ);
12
13$out = '';
14while (!feof($fh)) {
15    $out .= stream_get_line($fh, 1024);
16}
17
18fclose($fh);
19
20echo strlen($out) . "\n";
21--EXPECT--
223
23