ID: 37778
User updated by: postings-php-bug at hans-spath dot de
Reported By: postings-php-bug at hans-spath dot de
-Status: Feedback
+Status: Open
Bug Type: Filesystem function related
Operating System: Linux 2.6.8
-PHP Version: 5.1.4
+PHP Version: 5.2.0-dev
New Comment:
% ./php -v; ./php -r 'echo fileatime("file-greater-than-2gb"), "\n";'
PHP 5.2.0-dev (cli) (built: Jun 11 2006 17:48:17)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
Warning: fileatime(): stat failed for file-greater-than-2gb in Command
line code on line 1
Previous Comments:
------------------------------------------------------------------------
[2006-06-11 13:58:56] [EMAIL PROTECTED]
$ sudo apt-get install flex-old
------------------------------------------------------------------------
[2006-06-11 13:24:48] postings-php-bug at hans-spath dot de
I really want to test the CVS version, but I run Debian Sarge and can't
./configure it:
configure: error: flex versions supported for regeneration of the
Zend/PHP parsers: 2.5.4 (found: 2.5.31).
** So please, can someone else test this? **
------------------------------------------------------------------------
[2006-06-11 10:41:01] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
------------------------------------------------------------------------
[2006-06-11 02:34:39] postings-php-bug at hans-spath dot de
Ooops... the expected result was for fileowner()... but you get the
idea...
------------------------------------------------------------------------
[2006-06-11 02:23:45] postings-php-bug at hans-spath dot de
Description:
------------
Several filesystem functions fail on files greater than 2GB.
Affected functions are:
- fileatime()
- filectime()
- filegroup()
- fileinode()
- filemtime()
- fileowner()
- fileperms()
- filesize() - I wouldn't complain if only this was affected.
- filetype()
- stat()
(maybe more...)
Reproduce code:
---------------
echo fileatime("file-greater-than-2gb");
Expected result:
----------------
1000
Actual result:
--------------
Warning: fileowner(): stat failed for file-greater-than-2gb in Command
line code on line 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37778&edit=1