1--TEST-- 2Hash: hash_update_stream() test 3--CREDITS-- 4marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br 5--FILE-- 6<?php 7$fp = tmpfile(); 8fwrite($fp, 'The quick brown fox jumped over the lazy dog.'); 9rewind($fp); 10 11$ctx = hash_init('md5'); 12hash_update_stream($ctx, $fp); 13echo hash_final($ctx); 14?> 15--EXPECT-- 165c6ffbdd40d9556b73a21e63c3e0e904 17