PHP 8.1.28 Released!

shmop_delete

(PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8)

shmop_deleteCancella un blocco di memoria condivisa

Descrizione

shmop_delete(int $shmid): int

La funzione shmop_delete() viene utilizzata per cancellare un blocco di memoria condivisa.

La funzione shmop_delete() ha un solo parametro, shmid, che è l'identificativo del blocco di memoria condiviso creato da shmop_open(). Se la funzione ha successo restituisce 1, altrimenti 0.

Example #1 Cancellazione di un segmento di memoria condivisa

<?php
shmop_delete
($shm_id);
?>

In questo esempio si cancella il segmento di memoria condivisa identificato da $shm_id.

add a note

User Contributed Notes 1 note

up
5
lizzy
19 years ago
A helpful hint, although when using shmop on windows (yes you can use shmop on windows in IIS or Apache when used as isapi/module) you can delete a segment and later open a new segment with the SAME KEY in the same script no problem, YOU CANNOT IN LINUX/UNIX - the segment will still exist - it's not immediately deleted - but will be marked for deletion and you'll get errors when trying to create the new one - just a reminder.
To Top