php.net |  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: 2021-08-01 04:22 UTC
From: HMWiesinger at gmx dot at Assigned: cmb (profile)
Status: No Feedback 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:
MUST BE VALID
Solve the problem:
35 - 32 = ?
Subscribe to this entry?

 
 [2012-02-01 08:27 UTC] HMWiesinger at gmx dot at
Description:
------------
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-07-19 11:13 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-07-19 11:13 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-08-01 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 14:01:31 2024 UTC