1--TEST--
2stream_get_contents() - Testing offset out of range
3--FILE--
4<?php
5
6$tmp = tmpfile();
7
8fwrite($tmp, "12345");
9
10echo stream_get_contents($tmp, 2, 5), "--\n";
11echo stream_get_contents($tmp, 2), "--\n";
12echo stream_get_contents($tmp, 2, 3), "--\n";
13echo stream_get_contents($tmp, 2, -1), "--\n";
14
15?>
16--EXPECT--
17--
18--
1945--
20--
21