From:             sc1n at yahoo dot com
Operating system: FreeBSD & Linux
PHP version:      5.2.10
PHP Bug Type:     Feature/Change Request
Bug description:  Cannot check semaphore status

Description:
------------
The PHP sysvsem implementation lacks core functionality for semaphore
usage.  The missing functionality makes tasks that can commonly be solved
with semaphores in other languages not possible in PHP.

Functions that that provide the following behavior should be added:

GETVAL -- Return the value of a single semaphore. (this one is really
important).

GETNCNT -- Return the number of processes waiting for the value of a
semaphore to increase. 

GETZCNT -- Return the number of processes waiting for the value of a
particular semaphore to reach zero. 

GETPID -- Return the PID of the process that performed the last operation
on the semaphore.

The flag IPC_NOWAIT should be added to sem_acquire to set the acquire has
non blocking.

Expected result:
----------------
Minimum level of semaphore support that matches implementations for
virtually any other programming language.


-- 
Edit bug report at http://bugs.php.net/?id=48748&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=48748&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=48748&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=48748&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=48748&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48748&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48748&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48748&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48748&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48748&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48748&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48748&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48748&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48748&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48748&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48748&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48748&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48748&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48748&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48748&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48748&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48748&r=mysqlcfg

Reply via email to