Annotation of embedaddon/php/ext/standard/tests/streams/stream_get_contents_001.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: stream_get_contents() - Testing offset out of range
! 3: --FILE--
! 4: <?php
! 5:
! 6: $tmp = tmpfile();
! 7:
! 8: fwrite($tmp, b"12345");
! 9:
! 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";
! 14:
! 15: @unlink($tmp);
! 16:
! 17: ?>
! 18: --EXPECT--
! 19: --
! 20: --
! 21: 45--
! 22: --
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>