1--TEST--
2stream_get_contents() - Testing offset out of range
3--FILE--
4<?php
5
6$tmp = tmpfile();
7
8fwrite($tmp, b"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@unlink($tmp);
16
17?>
18--EXPECT--
19--
20--
2145--
22--
23