1--TEST-- 2Hash: hash_update_file() test 3--CREDITS-- 4marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br 5--FILE-- 6<?php 7$filePath = __DIR__ . DIRECTORY_SEPARATOR . 'hash_update_stream.txt'; 8file_put_contents($filePath, 'The quick brown fox jumped over the lazy dog.'); 9 10$ctx = hash_init('md5'); 11var_dump(hash_update_file($ctx, $filePath)); 12echo hash_final($ctx); 13?> 14--EXPECT-- 15bool(true) 165c6ffbdd40d9556b73a21e63c3e0e904 17--CLEAN-- 18<?php 19unlink(__DIR__ . DIRECTORY_SEPARATOR . 'hash_update_stream.txt'); 20?> 21