|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-03-05 11:24 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 18:00:02 2025 UTC |
Description: ------------ fseek does not move the pointer over 2GB limit even if Large File Support is compiled according to the Filesystem functions instruction at the php manual (but if you want PHP to support LFS (large files) on Linux, then you need to have a recent glibc and you need compile PHP with the following compiler flags: -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64. ) Consecutive ftell() calls return 0 Reproduce code: --------------- $fp=fopen("Some Large File",'r'); fseek($fp,2147483648,SEEK_SET); echo ftell($fp); Expected result: ---------------- 2147483648 Actual result: -------------- 0