cvs: php-src /ext/standard/tests/streams bug46426.phpt
| From: | Felipe Pena | Date: | Thu, 30 Oct 2008 14:31:01 +0000 |
| Subject: | cvs: php-src /ext/standard/tests/streams bug46426.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-53802@lists.php.net to get a copy of this message | ||
felipe Thu Oct 30 14:31:01 2008 UTC
Modified files:
/php-src/ext/standard/tests/streams bug46426.phpt
Log:
- Improved test
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/streams/bug46426.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/standard/tests/streams/bug46426.phpt
diff -u php-src/ext/standard/tests/streams/bug46426.phpt:1.1
php-src/ext/standard/tests/streams/bug46426.phpt:1.2
--- php-src/ext/standard/tests/streams/bug46426.phpt:1.1 Thu Oct 30 10:08:01 2008
+++ php-src/ext/standard/tests/streams/bug46426.phpt Thu Oct 30 14:31:01 2008
@@ -7,16 +7,28 @@
fwrite($tmp, "12345");
-echo stream_get_contents($tmp, -1, 0);
+echo stream_get_contents($tmp, 2, 1);
+echo "\n";
+echo stream_get_contents($tmp, -1);
echo "\n";
-echo stream_get_contents($tmp, -1, 1);
+echo stream_get_contents($tmp, -1, 0);
echo "\n";
echo stream_get_contents($tmp, -1, 2);
+echo "\n";
+echo stream_get_contents($tmp, 0, 0);
+echo "\n";
+echo stream_get_contents($tmp, 1, 0);
+echo "\n";
+echo stream_get_contents($tmp, -1);
@unlink($tmp);
?>
--EXPECT--
+23
+45
12345
-2345
345
+
+1
+2345