1--TEST--
2proper string length on stream_get_contents()
3--FILE--
4<?php
5$f = fopen('php://memory', 'rw');
6fwrite($f, str_repeat('X', 1000));
7fseek($f, 0);
8var_dump(strlen(stream_get_contents($f, 1024)));
9?>
10--EXPECT--
11int(1000)
12