php.net |  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
Description:
------------
---
From manual page: http://www.php.net/function.sem-get
---
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 :

https://bugs.php.net/bug.php?id=61608
http://www.serverphorums.com/read.php?8,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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-12-12 18:36 UTC] aharvey@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: aharvey
 [2013-12-12 18:36 UTC] aharvey@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 18:01:29 2024 UTC