1--TEST-- 2int hash_update_stream ( resource $context , resource $handle [, int $length = -1 ] ); 3--CREDITS-- 4marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br 5--SKIPIF-- 6<?php 7if (!extension_loaded('hash')) die('skip hash extension not available'); 8?> 9--FILE-- 10<?php 11$fp = tmpfile(); 12fwrite($fp, 'The quick brown fox jumped over the lazy dog.'); 13rewind($fp); 14 15$ctx = hash_init('md5'); 16hash_update_stream($ctx, $fp); 17echo hash_final($ctx); 18?> 19--EXPECT-- 205c6ffbdd40d9556b73a21e63c3e0e904 21