|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13190 shm_put_var() problem with free space calculation
Submitted: 2001-09-07 06:43 UTC Modified: 2001-10-02 19:39 UTC
From: phpbug at oderwat dot de Assigned:
Status: Closed Package: *Extensibility Functions
PHP Version: 4.0.6 OS: Linux SuSE 6.3 - Apache
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: phpbug at oderwat dot de
New email:
PHP Version: OS:


 [2001-09-07 06:43 UTC] phpbug at oderwat dot de
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

$str=str_repeat("-",30); // 52 (max which fits in 100) is even worse
//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!

 Hans Raaf


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-07 07:05 UTC]
Please try latest CVS or a snapshot.
I've just commit a fix for this.
 [2001-10-02 19:39 UTC]
No feedback and should be fixed in CVS.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Nov 30 21:01:23 2020 UTC