#51045 [Opn->Csd]: sem_get() parameter $auto_release default value not documented
| From: | kalle@php.net | Date: | Tue, 16 Feb 2010 07:23:32 +0000 |
| Subject: | #51045 [Opn->Csd]: sem_get() parameter $auto_release default value not documented | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3893@lists.php.net to get a copy of this message | ||
ID: 51045
Updated by: kalle@php.net
Reported By: ayzit1991 at googlemail dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: All
PHP Version: Irrelevant
-Assigned To:
+Assigned To: kalle
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2010-02-16 07:23:17] svn@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=295138
Log: Fixed bug #51045 (sem_get() parameter $auto_release default value
not documented)
------------------------------------------------------------------------
[2010-02-14 11:47:11] ayzit1991 at googlemail dot com
Description:
------------
The signature for sem_get() reads
resource sem_get ( int $key [, int $max_acquire = 1 [, int $perm =
0666 [, int $auto_release ]]] )
For the parameter $auto_release, it is not documented:
1. how values are handled,
2. what the default value is.
For 1 my guess is, that an integer that evaluates to boolean TRUE
releases the semaphore on request shutdown and an integer that evaluates
to boolean FALSE does not.
For 2 my guess is, I have to look up the documentation for a version
prior to the introduction of this parameter and take that behavior as
the default.
Reproduce code:
---------------
---
From manual page: function.sem-get#Description
---
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=51045&edit=1