← Back
Editing: stream_get_contents_001.phpt
--TEST-- stream_get_contents() - Testing offset out of range --FILE-- <?php $tmp = tmpfile(); fwrite($tmp, "12345"); echo stream_get_contents($tmp, 2, 5), "--\n"; echo stream_get_contents($tmp, 2), "--\n"; echo stream_get_contents($tmp, 2, 3), "--\n"; echo stream_get_contents($tmp, 2, -1), "--\n"; ?> --EXPECT-- -- -- 45-- --
Save File
Cancel