Bug #68209 [Com]: php does not work with files that have 64bit inodes (on a 32bit kernels)
| From: | glen at delfi dot ee | Date: | Sun, 12 Oct 2014 13:40:45 +0000 |
| Subject: | Bug #68209 [Com]: php does not work with files that have 64bit inodes (on a 32bit kernels) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-188026@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68209&edit=1
ID: 68209
Comment by: glen at delfi dot ee
Reported by: arekm at maven dot pl
Summary: php does not work with files that have 64bit inodes
(on a 32bit kernels)
Status: Not a bug
Type: Bug
Package: *General Issues
PHP Version: 5.6.1
Block user comment: N
Private report: N
New Comment:
Totally agree with arek, large file SIZE is totally different issue than file opened on 64bit
filesystem. with bug 68209 even small file like 0 byte file is not accessible with php.
Previous Comments:
------------------------------------------------------------------------
[2014-10-12 13:40:44] glen at delfi dot ee
Related To: Bug #68209
------------------------------------------------------------------------
[2014-10-11 20:56:51] arekm at maven dot pl
This bug is not about large files.
It is about small files (example has 0 bytes size) and these files have 64bit inodes.
Of course (one) solution for both cases is to use LFS but these are different things.
The other solution would be cooking stat() wrapper. Wrapper that would use stat64 with
_FILE_OFFSET_BITS=64 and just truncate s_ino as php mostly doesn't care about this.
------------------------------------------------------------------------
[2014-10-11 20:40:52] johannes@php.net
There are such places - notably the SAPI interface has a function to pass the stat structure from a
web server to PHP in order to save stat calls if the server already does. http://lxr.php.net/xref/PHP_5_6/main/SAPI.h#232
There are also different extensions where file pointers are passed around.
We already have open bugs for this, i.e. https://bugs.php.net/bug.php?id=27792closing
this issue as duplicate.
------------------------------------------------------------------------
[2014-10-10 20:07:59] arekm at maven dot pl
Doesn't seem to be true since currently php is not LFS enabled while most of system libraries
are LFS enabled on recent distros and I saw no bugreports related to that.
Probably php doesn't interchange 'struct stat' data between itself and libs thus is
safe to mix non LFS php and LFS libraries.
------------------------------------------------------------------------
[2014-10-10 19:21:14] glen at delfi dot ee
AFAIK it is not that safe to enable LFS, as then libraries linked with PHP need to be LFS compatible
too.
see http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2014-May/023935.html
or top of that thread:
http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2014-May/thread.html#23916
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=68209
--
Edit this bug report at https://bugs.php.net/bug.php?id=68209&edit=1