|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #66270 sem_get() expects an already created pack of semaphores to have 3 of them.
Submitted: 2013-12-12 10:29 UTC Modified: 2013-12-12 18:36 UTC
From: xruppen at gmail dot com Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2013-12-12 10:29 UTC] xruppen at gmail dot com
From manual page:
When trying to retrieve an already created pack of SystemV semaphores (by an already running C application), sem_get apparently expects that pack to contain exactly 3 semaphores. It is NOT documented anywhere in the PHP documentation. The solution to this problem was found at these two locations :,312273 

It really should be documented as not only it is weird but cannot be guessed.

Expected result:
The doc page of sem_get() should contain a note about that.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-12-12 18:36 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: aharvey
 [2013-12-12 18:36 UTC]
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

Fixed. We should definitely leave bug #61608 open to track eventually fixing this, though, because it seems a weirdly arbitrary limitation.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Oct 18 01:03:39 2021 UTC