1--TEST-- 2bool hash_update_file ( resource $hcontext , string $filename [, resource $scontext = NULL ] ); 3--CREDITS-- 4marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br 5--SKIPIF-- 6<?php 7if (phpversion() < "5.3.0") { 8 die('SKIP php version so lower.'); 9} 10require_once(dirname(__FILE__) . '/skip_mhash.inc'); ?> 11?> 12--FILE-- 13<?php 14$ctx = hash_init('md5'); 15$filePath = __DIR__ . DIRECTORY_SEPARATOR . 'sha1.phpt'; 16fopen($filePath, "r"); 17var_dump(hash_update_file($ctx, $filePath)); 18hash_final($ctx); 19?> 20--EXPECT-- 21bool(true) 22