note 78518 deleted from function.filesize by aharvey

From: Date: Tue, 22 Jan 2013 00:19:55 +0000
Subject: note 78518 deleted from function.filesize by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-193325@lists.php.net to get a copy of this message
Note Submitter: MagicalTux at gmail dot com ---- filesize() acts differently between platforms and distributions. I tried manually compiling PHP on a 32bit platform. Filesize() would fail on files >2G. Then I compiled again, adding CFLAGS=getconf LFS_CFLAGS in front of configure. Then filesize() would success, but the result would be converted to a 32bit signed integer... However on 64bit systems, PHP's integers are 64bit signed, and this would work just well... So now the question is : should linux distributions (Debian, etc) define LFS_CFLAGS or not ? Doing so makes PHP be able to open/seek such files, but makes its behaviour buggy (stat() is supposed to fail if file size is >32bit and appl does not support such integers)...

« previous php.notes (#193325) next »