php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31667 md5_file fails on large files
Submitted: 2005-01-23 12:43 UTC Modified: 2005-01-31 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: markyd at optushome dot com dot au Assigned:
Status: No Feedback Package: Filesystem function related
PHP Version: 4.3.10 OS: Linux Debian (SID)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: markyd at optushome dot com dot au
New email:
PHP Version: OS:

 

 [2005-01-23 12:43 UTC] markyd at optushome dot com dot au
Description:
------------
It seems that the function md5_file() fails to operate on large files. I believe this issue occurs when the file is larger that 2gb. Slightly smaller files (around 1.8gig) seems to work fine.

When trying to access these large files, php generates the following error:

Warning: md5_file(): Unable to open file in XXXXX on line XXX

Reproduce code:
---------------
md5_file("a_large_file");

Expected result:
----------------
return a valid md5hash

Actual result:
--------------
Warning: md5_file(): Unable to open file in XXXXX on line XXX

returns an empty string

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-23 12:49 UTC] markyd at optushome dot com dot au
This code was running as part of a shell script and not via apache (module or cgi)

Also the shell command md5sum works on the file the files that the code above fails on.
 [2005-01-23 21:04 UTC] iliaa@php.net
Was php compiled with large file support?
 [2005-01-31 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Dec 09 23:01:24 2019 UTC