September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool shmop_delete(int shmop_id) Deletes a shared memory segment.
Returns:
TRUE on success; FALSE on failure
Description:
shmop_delete() deletes the shared memory segment identified by shmop_id . If shmod_id is not a valid identifier as returned by shmop_open(), or if for some reason the segment cannot be deleted (permissions, for instance), FALSE is returned and the function fails.
Note that the segment isn’t necessarily deleted immediately. Rather, it’s marked for deletion, and is destroyed and its memory freed only after the last process to be attached to it has detached from it.
Version:
PHP 4 since 4.0.3
See also:
shmop_close() shmop_open() shmop_read() shmop_size() shmop_write()
Example:
Read now
Unlock full access