Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FTOK() collisions #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WiredTombstone
Copy link

ftok() can have collisions quite easily especially on systems with lots of files. Users of the shared memory class may want to specify a temporary file so that memory is only shared between specific groups of executing processes. Using a file's inode is a much better way to prevent collisions of this nature.

…inode instead will prevent collisions especially when using temp files for shared memory storage.
@maksimovic
Copy link

It's been years ago since you've opened this PR, but feel free to open it over here at https://github.com/maksimovic/simple-fork-php

I needed this to be compatible with PHP 7.2+ (8 included) and eventually had it released as a separate package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants