#51045 [NEW]: sem_get() parameter $auto_release default value not documented
| From: | ayzit1991 at googlemail dot com | Date: | Sun, 14 Feb 2010 11:47:11 +0000 |
| Subject: | #51045 [NEW]: sem_get() parameter $auto_release default value not documented | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-3887@lists.php.net to get a copy of this message | ||
From: ayzit1991 at googlemail dot com
Operating system: All
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: sem_get() parameter $auto_release default value not documented
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 bug report at http://bugs.php.net/?id=51045&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51045&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51045&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51045&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=51045&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51045&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51045&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51045&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51045&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51045&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51045&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51045&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51045&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51045&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51045&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51045&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51045&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51045&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51045&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51045&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51045&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51045&r=mysqlcfg