|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60945 Cannot set memory size for sysvshm methods
Submitted: 2012-02-01 08:27 UTC Modified: -
From: HMWiesinger at gmx dot at Assigned:
Status: Open Package: Semaphore related
PHP Version: 5.3.9 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
8 + 12 = ?
Subscribe to this entry?

 [2012-02-01 08:27 UTC] HMWiesinger at gmx dot at
Using the sysvshm extension I am not able to define a memory size different from 
the default 10000 bytes.
The second parameter '$memsize' of shm_attach() is ignored (but throws a warning 
about an invalid key).
Setting 'sysvshm.init_mem' to something else than 10000 has no effect as php 
doesn't recognize it as a valid config option. ini_get() on said config option 
returns 'does not exist'.
I even tried changing the hardcoded '10000' value in sysvshm.c to something 
different and recompile php, which didn't have an effect either.


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Sep 22 05:01:30 2020 UTC