mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
23 lines
347 B
PHP
23 lines
347 B
PHP
--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";
|
|
|
|
@unlink($tmp);
|
|
|
|
?>
|
|
--EXPECT--
|
|
--
|
|
--
|
|
45--
|
|
--
|