ID:               40726
 Updated by:       [EMAIL PROTECTED]
 Reported By:      plamen at pulsator dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Filesystem function related
 Operating System: FreeBSD 6.2 i386
 PHP Version:      5.2.1
 New Comment:

PHP uses "signed long" internally.
We're still considering a possibility to add a cross-platform 64-bit
long, though until it's done you're bound to your native long limits.


Previous Comments:
------------------------------------------------------------------------

[2007-03-05 11:19:11] plamen at pulsator dot com

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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40726&edit=1

Reply via email to