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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
50 - 9 = ?
Subscribe to this entry?

 
 [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: Sun Dec 15 03:01:24 2019 UTC