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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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-2021 The PHP Group
All rights reserved.
Last updated: Tue Nov 30 22:03:36 2021 UTC