klaussilveira / SimpleSHM

SimpleSHM is a simple and small abstraction layer for shared memory manipulation using PHP. It makes use of the SHMOP functions, built into most PHP packages.
BSD 3-Clause "New" or "Revised" License
136 stars 46 forks source link

Use consistent IPC key instead of random integer as id #6

Closed tuupola closed 8 years ago

tuupola commented 8 years ago

Currently the data stored into shared memory is not accessible between requests unless you specify the id manually. This PR addresses the issue by using consistent IPC key generated with ftok() function.

Also fixes bug #3.