Shared memory don't freed (shmop_close)

Hello,

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
Thanks

[php]<?php

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

?>[/php]

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

Sponsor our Newsletter | Privacy Policy | Terms of Service