mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
23 lines
347 B
Plaintext
23 lines
347 B
Plaintext
|
--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--
|
||
|
--
|