ID: 13190 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: *Extensibility Functions Operating System: Linux SuSE 6.3 - Apache PHP Version: 4.0.6 New Comment:
No feedback and should be fixed in CVS. Previous Comments: ------------------------------------------------------------------------ [2001-09-07 07:05:53] [EMAIL PROTECTED] Please try latest CVS or a snapshot. I've just commit a fix for this. ------------------------------------------------------------------------ [2001-09-07 06:43:10] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13190&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]