From: daredevil at rozmova dot if dot ua Operating system: FreeBSD, cygwin PHP version: 4.3.3 PHP Bug Type: Semaphore related Bug description: sem_get with fixed IDC_CREAT flag
Description: ------------ in the sem_get function, according to the source code, semaphore *always* getting with IPC_CREATE flag. That is unnecessary in situations, when I wanna get an existing semaphore, not to create a new one. Also in the Documentation You should mention, that a PHP semaphore is really THREE of them! Because when writing an client-server app (php as a client platform ang C/C++ as a server platform), and a semaphore is created in C++ as semget(key, 1(!), IPC_CREATE | 0666) - I need onle one! When trying to reach it in php sem_get(key) php handles an "ivalid argument exception" because php wanna re-create the semaphore set from 1 to 3. -- Edit bug report at http://bugs.php.net/?id=25961&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25961&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25961&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25961&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25961&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25961&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25961&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25961&r=support Expected behavior: http://bugs.php.net/fix.php?id=25961&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25961&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25961&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25961&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25961&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25961&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25961&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25961&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25961&r=float