note 98757 added to function.fseek

From: Date: Mon, 05 Jul 2010 16:33:08 +0000
Subject: note 98757 added to function.fseek
Groups: php.notes 
Request: Send a blank email to php-notes+get-170718@lists.php.net to get a copy of this message
Guys, I have always had issues with PHP's internally signed integers.. I design my own database structures and I store huge amounts of data in files (over 100 GBs) and I've always had issues doing anything with a file past the 2 GB mark. I did some testing and discovered the limit of fseek/ftell and/or any other integer operation. The limit is 2 GBs minus 1 byte.. or 2×1024³-1 (or 2*pow(1024,3)-1). I had to make a work-around because of this and split my database into multiple files to avoid this problem.. works just fine now. I didn't see the signed integer issue mentioned with this function so I thought I would, may save someone the time figuring it out, too. Nitrogen. ---- Server IP: 213.229.106.14 Probable Submitter: 86.139.179.196 ---- Manual Page -- http://www.php.net/manual/en/function.fseek.php Edit -- https://master.php.net/note/edit/98757 Del: integrated -- https://master.php.net/note/delete/98757/integrated Del: useless -- https://master.php.net/note/delete/98757/useless Del: bad code -- https://master.php.net/note/delete/98757/bad+code Del: spam -- https://master.php.net/note/delete/98757/spam Del: non-english -- https://master.php.net/note/delete/98757/non-english Del: in docs -- https://master.php.net/note/delete/98757/in+docs Del: other reasons-- https://master.php.net/note/delete/98757 Reject -- https://master.php.net/note/reject/98757 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#170718) next »