I want to ask about why after I use shmop_delete($shmid) and shmop_close($shmid) there is nothing happen? the first string is still attaced.
This is my php code: $key = 864; $mode = 'c'; $permission = 0644; $size = 1024;
$shmid = shmop_open($key, $mode, $permission, 1024);
$string = "Hello World !!!";
shmop_write($shmid, $string, 0);
$size = shmop_size($shmid);
echo shmop_read($shmid, 0, $size);
shmop_delete($shmid);
shmop_close($shmid);
First Result: Hello World !!!
Then I change $string = "TEST".
After that I run the code again with result : TESTo World !!! (Unwanted Result). The result I want is : TEST
why the 'o World !!!' is still attached although I already did shmop_delete and shmop_close? And How I can erase it from Shared Memory? Thx...