Doc #66270 [NEW]: sem_get() expects an already created pack of semaphores to have 3 of them.
| From: | xruppen at gmail dot com | Date: | Thu, 12 Dec 2013 10:29:34 +0000 |
| Subject: | Doc #66270 [NEW]: sem_get() expects an already created pack of semaphores to have 3 of them. | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-10703@lists.php.net to get a copy of this message | ||
From: xruppen at gmail dot com
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:sem_get() expects an already created pack of semaphores to have 3 of them.
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.
--
Edit bug report at https://bugs.php.net/bug.php?id=66270&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66270&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66270&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66270&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66270&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66270&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66270&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66270&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66270&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66270&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66270&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66270&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66270&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66270&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66270&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66270&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66270&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66270&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66270&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66270&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66270&r=mysqlcfg