note 112015 added to function.ftok
| From: | vlatko dot surlan at evorion dot hr | Date: | Mon, 22 Apr 2013 10:09:52 +0000 |
| Subject: | note 112015 added to function.ftok | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-194594@lists.php.net to get a copy of this message | ||
The rather unintuitive usage of ftok with shm related functions like shmop_open and shm_attach could
simply be explained as a need to avoid shm key collisions. Using ftok with a file that belongs to
your project is likely to generate a unique key. Additionally, using ftok with a file from your
project avoids the need to store the key so that other processes can access the segment because ftok
will always give you the same key if you pass the same file.
----
Server IP: 69.147.83.199
Probable Submitter: 93.136.1.83
----
Manual Page -- http://php.net/manual/en/function.ftok.php
Edit -- https://master.php.net/note/edit/112015
Del: integrated -- https://master.php.net/note/delete/112015/integrated
Del: useless -- https://master.php.net/note/delete/112015/useless
Del: bad code -- https://master.php.net/note/delete/112015/bad+code
Del: spam -- https://master.php.net/note/delete/112015/spam
Del: non-english -- https://master.php.net/note/delete/112015/non-english
Del: in docs -- https://master.php.net/note/delete/112015/in+docs
Del: other reasons-- https://master.php.net/note/delete/112015
Reject -- https://master.php.net/note/reject/112015
Search -- https://master.php.net/manage/user-notes.php