php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37778 several filesystem functions fail on files >2GB - e.g. fileatime(), fileowner()
Submitted: 2006-06-11 02:23 UTC Modified: 2006-06-14 16:47 UTC
From: postings-php-bug at hans-spath dot de Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 5.2.0-dev OS: Linux 2.6.8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: postings-php-bug at hans-spath dot de
New email:
PHP Version: OS:

 

 [2006-06-11 02:23 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-11 02:34 UTC] postings-php-bug at hans-spath dot de
Ooops... the expected result was for fileowner()... but you get the idea...
 [2006-06-11 10:41 UTC] derick@php.net
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 13:24 UTC] 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 13:58 UTC] mike@php.net
$ sudo apt-get install flex-old
 [2006-06-11 15:55 UTC] postings-php-bug at hans-spath dot de
% ./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
 [2006-06-14 16:47 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See bug #27792
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 03 09:01:29 2024 UTC