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, PHP 8)
shmop_close — 共有メモリブロックを閉じる
値を返しません。
バージョン | 説明 |
---|---|
8.0.0 |
引数 shmop は、
Shmop クラスのインスタンスを期待するようになりました。
これより前のバージョンでは、リソースが期待されていました。
|
例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).