Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / php / ext / standard / tests / streams / stream_get_contents_001.phpt
blobe8e1c3d26bda39d1b50d9c578e68e77f921027dc
1 --TEST--
2 stream_get_contents() - Testing offset out of range
3 --FILE--
4 <?php
6 $tmp = tmpfile();
8 fwrite($tmp, b"12345");
10 echo stream_get_contents($tmp, 2, 5), "--\n";
11 echo stream_get_contents($tmp, 2), "--\n";
12 echo stream_get_contents($tmp, 2, 3), "--\n";
13 echo stream_get_contents($tmp, 2, -1), "--\n";
15 @unlink($tmp);
18 --EXPECT--
21 45--