shmop_close doesn't delete the memory segment, it just detaches from it.
If you have created the block and need to delete it you must call shmop_delete **BEFORE** calling shmop_close (for reasons outlined in shmop_delete help page notes).
(PHP 4 >= 4.0.4, PHP 5, PHP 7)
shmop_close — Закрытие блока разделяемой памяти
$shmid
)shmop_close() используется для завершения доступа к блоку разделяемой памяти.
Эта функция не возвращает значения после выполнения.
Пример #1 Закрытие блока разделяемой памяти
<?php
shmop_close($shm_id);
?>
В данном примере прекращается доступ к блоку памяти, имеющему идентификатор $shm_id.
shmop_close doesn't delete the memory segment, it just detaches from it.
If you have created the block and need to delete it you must call shmop_delete **BEFORE** calling shmop_close (for reasons outlined in shmop_delete help page notes).