|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #16913 sem auto release should be to be disabled!!!
Submitted: 2002-04-29 14:28 UTC Modified: 2019-04-14 04:22 UTC
Avg. Score:3.5 ± 0.9
Reproduced:6 of 7 (85.7%)
Same Version:3 (50.0%)
Same OS:2 (33.3%)
From: AlberT at SuperAlberT dot it Assigned:
Status: No Feedback Package: Semaphore related
PHP Version: 4.1.2 OS: Linux 2.4.18
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-04-29 14:28 UTC] AlberT at SuperAlberT dot it
sem_acquire() function has this behavior:

After processing a request, any semaphores acquired by the process but not explicitly released will be released automatically and a warning will be generated. 

This is not a great thing, infact in this way the readers/writers classical IPC problem, with writers precedence is impossible to implement !!!

I think an option to disable autorelease is usefull.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-03 17:51 UTC]
-Package: Feature/Change Request +Package: Semaphore related
 [2019-04-01 22:16 UTC]
-Status: Open +Status: Feedback
 [2019-04-01 22:16 UTC]
Is this still a thing?

Ps. sorry for the long response time!
 [2019-04-14 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-2019 The PHP Group
All rights reserved.
Last updated: Thu May 23 20:01:28 2019 UTC