Skip to content

Commit ebbc784

Browse files
committed
Merge pull request #144 from netroby/hotfix/strict-checker
Strict check for fsize
2 parents ac6b48b + 93217b9 commit ebbc784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Qiniu/Etag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static function sum($filename)
3838

3939
$fstat = fstat($fhandler);
4040
$fsize = $fstat['size'];
41-
if ($fsize == 0) {
41+
if ((int) $fsize === 0) {
4242
fclose($fhandler);
4343
return array('Fto5o-5ea0sNMlW_75VgGJCv2AcJ', null);
4444
}

0 commit comments

Comments
 (0)