ID: 27792
Comment by: m dot arief at valdo-intl dot com
Reported By: kode at kodekrash dot com
Status: Assigned
Bug Type: Filesystem function related
Operating System: * (LFS)
PHP Version: 6CVS, *CVS
Assigned To: wez
New Comment:
hmm.., i really hate this situation. Actually i dont work at a big file
very often. But while there are some backup files need to be saved to
database, then this become really important problem if the file size is
really large.
I've tried 2 GB text file to store it contents in db. But it was
stopped at line 7305.
Dont have any idea abt this bugs. But if there's no one fix this then
i'll go for another languages, python or ruby i think. But php is still
one of my favorite language.
Previous Comments:
------------------------------------------------------------------------
[2008-03-22 22:20:51] xpuctu4 at abv dot bg
php -v
PHP 5.2.3-1ubuntu6.3 (cli) (built: Jan 10 2008 09:38:41)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
I do not know if the ubuntu version have any patches but my PHP works
fine.
I created a large file with dd if=/dev/urandom and this is my results:
// print_r($foo)
Array
(
[size] => 4805357568 // filesize()
[isfile] => 1 // is_file()
[isreadable] => 1 // is_readable()
[islink] => //is_link() empty maybe because it is not link
)
// Now I read 1st 32 bytes
// fopen(), fread(), fseek($filesize - 32), fread(), fclose()
// strlen($data)
1st read: 32 bytes
2nd read: 32 bytes
------------------------------------------------------------------------
[2008-03-15 21:59:15] sawo at war3z dot org
Does anybody knows if this is fixed in 6.0 ?
------------------------------------------------------------------------
[2008-01-29 14:45:08] elevator at thebrainhotel dot com
All indications are that this is *not* fixed in PHP 5.2.x, the one
comment above notwithstanding. There's another conflicting comment re:
PHP 5.2.x, and there's also a patch provided for PHP 5.3 -- if a patch
is needed for PHP 5.3, it would certainly appear to *not* be fixed in
PHP 5.2.x
And then there's my personal experience with PHP 5.2.4 (from the Xampp
distro for Windows), where I'm actually experiencing the problem when
trying to use move_uploaded_file; likewise on 3 deployments of PHP 5.1.x
I've tried
------------------------------------------------------------------------
[2008-01-18 12:01:27] radon8472 at hotmail dot com
file_get_contents() has also Problems with files over 2 GB Border. Doea
anybody know when there will be released an php version with lage File
Support (4GB an larger) ?
------------------------------------------------------------------------
[2007-10-14 22:17:19] [EMAIL PROTECTED]
You might like to try the following patch:
http://news.php.net/php.internals/32767
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/27792
--
Edit this bug report at http://bugs.php.net/?id=27792&edit=1