shmop_close

void shmop_close(int shmop_id) 

Closes (detaches from) a shared memory segment.

Returns:

Returns nothing useful (as of PHP 4.0.5, integer 0 on success and FALSE on failure; however, the return value is considered to be void, so don’t count on this)

Description:

shmop_close() closes the shared memory segment identified by shmop_id . shmop_id must be a valid shared memory identifier as returned by shmop_open(). Closing a segment doesn’t destroy its contents or free its memory.

Version:

PHP 4 since 4.0.3

See also:

shmop_delete() 
shmop_open() 
shmop_read() 
shmop_size() 
shmop_write() 

Example:

Close a shmop shared memory segment
shmop_close($shm_id); 

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.