note 78518 added to function.filesize

From: Date: Tue, 16 Oct 2007 05:58:33 +0000
Subject: note 78518 added to function.filesize
Groups: php.notes 
Request: Send a blank email to php-notes+get-131415@lists.php.net to get a copy of this message
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)... ---- Server IP: 217.174.196.197 Probable Submitter: 62.73.5.156 ---- Manual Page -- http://www.php.net/manual/en/function.filesize.php Edit -- https://master.php.net/note/edit/78518 Del: integrated -- https://master.php.net/note/delete/78518/integrated Del: useless -- https://master.php.net/note/delete/78518/useless Del: bad code -- https://master.php.net/note/delete/78518/bad+code Del: spam -- https://master.php.net/note/delete/78518/spam Del: non-english -- https://master.php.net/note/delete/78518/non-english Del: in docs -- https://master.php.net/note/delete/78518/in+docs Del: other reasons-- https://master.php.net/note/delete/78518 Reject -- https://master.php.net/note/reject/78518 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131415) next »