|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-09-07 07:05 UTC] wez@php.net
[2001-10-02 19:39 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 12:00:01 2025 UTC |
It seems that "shm_put_var()" has a problem with the calculation of free space for setting a variable the second time. I guess it calculates the remaining free space including the size taken by the old variable <?php $str=str_repeat("-",30); // 52 (max which fits in 100) is even worse $shm=shm_attach(0xfffe,100); shm_put_var($shm,1,$str); //shm_put_var($shm,1,0); // using that will make next statement work without error shm_put_var($shm,1,$str); // THIS will tell you there is not enoug memory left! shm_detach($shm); shm_remove(0xfffe); ?> Sincerely, Hans Raaf