|
Posted by vmirage on 10/30/07 07:20
Hi,
I need to resize the shmop but it seems that I can't seem to get it
right. Here's what I did
// initialize with 100 byte
$shm_id = shmop_open(0xff3, "c", 0644, 100);
echo shmop_size($shm_id);
shmop_delete($shm_id);
shmop_close($shm_id);
// trying to resize to 200 byte but not working
$shm_id = shmop_open(0xff3, "c", 0644, 200);
echo shmop_size($shm_id);
shmop_delete($shm_id);
shmop_close($shm_id);
However, if I try creating shmop with a large memory allocation, i can
open the shmop with smaller memory allocation. But it still does not
resize the allocation.
The delete doesn't seem to delete even though no resources are using
the shmop.
Thanks
[Back to original message]
|