Shared memory don't freed (shmop_close)


I am using a loop script that put value into the shared memory. But i notice PHP create a new memory segment on each itteration and alfter a while it can fill my shared memory.

I believe it’s odd, shmop_close isn’t suppose to close the segment before the whole script is over ?

Any hint/help is appreciated


while (true) {
$shmid = shmop_open(256, ‘c’, 0755, 1024);
shmop_write($shmid, “whatever”, 0);


ok there is not an issue. I had a problem in my code ;D

Sponsor our Newsletter | Privacy Policy | Terms of Service