shm_attach
shm_attach
Creates or open a shared memory segment
**shm_attach** int $key $size int $permissions
returns an id that can be used to access
the System V shared memory with the given , the
first call creates the shared memory segment with
and the optional perm-bits
.
shm_attach``key``size``permissions
A second call to for the same
will return a different
instance, but both instances access the same underlying
shared memory. and
will be ignored.
shm_attach``key``SysvSharedMemory``size``permissions
keyA numeric shared memory segment ID
size
The memory size. If not provided, default to the
in the php.ini, otherwise 10000
bytes.
sysvshm.init_mem
permissionsThe optional permission bits. Default to 0666.
Returns a instance on success, return.falseforfailure.
SysvSharedMemory
shm_detach``ftok