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 -- ht
tp://www.php.net/manual/en/function.filesize.php
Edit -- https://master
.php.net/note/edit/78518
Del: integrated -- h
ttps://master.php.net/note/delete/78518/integrated
Del: useless -- http
s://master.php.net/note/delete/78518/useless
Del: bad code -- htt
ps://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 -- http
s://master.php.net/note/delete/78518/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/78518
Reject -- https://mast
er.php.net/note/reject/78518
Search -- https://
master.php.net/manage/user-notes.php
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|