#31667 [Fbk->NoF]: md5_file fails on large files

From: Date: Mon, 31 Jan 2005 00:00:07 +0000
Subject: #31667 [Fbk->NoF]: md5_file fails on large files
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-73086@lists.php.net to get a copy of this message
 ID:               31667
 Updated by:       php-bugs@lists.php.net
 Reported By:      markyd at optushome dot com dot au
-Status:           Feedback
+Status:           No Feedback
 Bug Type:         Filesystem function related
 Operating System: Linux Debian (SID)
 PHP Version:      4.3.10
 New Comment:

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".


Previous Comments:
------------------------------------------------------------------------

[2005-01-23 21:04:45] iliaa@php.net

Was php compiled with large file support?

------------------------------------------------------------------------

[2005-01-23 12:49:49] 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 12:43:36] 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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31667&edit=1


Thread (3 messages)

« previous php.bugs (#73086) next »