note 74560 added to function.ftok

From: Date: Tue, 17 Apr 2007 15:08:38 +0000
Subject: note 74560 added to function.ftok
Groups: php.notes 
Request: Send a blank email to php-notes+get-125522@lists.php.net to get a copy of this message
As ftok uses only the last 16 bits of the inode of the file, you can get collisions on large filesystems. Unfortunately, on large filesystems you can get collisions rather quickly: if you have a collection of 350-400 files, odds are that two of them have inodes with the same last 16 bits. So I've taken to using fileinode instead of ftok with functions like shmop_open. ---- Server IP: 83.137.20.120 Probable Submitter: 2001:888:10:58c::2 ---- Manual Page -- http://www.php.net/manual/en/function.ftok.php Edit -- https://master.php.net/note/edit/74560 Del: integrated -- https://master.php.net/note/delete/74560/integrated Del: useless -- https://master.php.net/note/delete/74560/useless Del: bad code -- https://master.php.net/note/delete/74560/bad+code Del: spam -- https://master.php.net/note/delete/74560/spam Del: non-english -- https://master.php.net/note/delete/74560/non-english Del: in docs -- https://master.php.net/note/delete/74560/in+docs Del: other reasons-- https://master.php.net/note/delete/74560 Reject -- https://master.php.net/note/reject/74560 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#125522) next »