php and LFS

Elan Ruusamäe glen at pld-linux.org
Thu May 15 19:49:47 CEST 2014


On 15.05.2014 20:08, Jakub Bogusz wrote:
> Also note that the flag itself is (probably) sufficient to get 64-bit
> inode support, but not for complete 64-bit file offsets/lengths support.
intention was to fix using php on inode64 mounted filesystem.
php itself overflowing in every corner is fine (not going to fix it in 
pld and carry around the patch forever)
besides you don't usually need to manipulate inode numbers in php, and 
comparing overflowed number with other overflowed number gets to the 
expected result (is this same file or not)

i'll enabling -D_FILE_OFFSET_BITS=64 now, as it fixed stat() calls 
failures, and pear list works now

$ ls -li /usr/share/pear/PEAR/Installer/Role/Common.php
4306713209 -rw-r--r-- 1 root root 6299 Aug 26  2012 
/usr/share/pear/PEAR/Installer/Role/Common.php
$ php53 -r '$st=stat("/usr/share/pear/PEAR/Installer/Role/Common.php"); 
var_dump($st["ino"]);'
int(11745913)

$ pear list
INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
=========================================
PACKAGE          VERSION STATE
Archive_Tar      1.3.10  stable
Console_Getopt   1.3.1   stable
PEAR             1.9.4   stable
PHP_Archive      0.11.4  alpha
Structures_Graph 1.0.4   stable
XML_Util         1.2.1   stable


-- 
glen



More information about the pld-devel-en mailing list