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



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to