ID:               38259
 Updated by:       [EMAIL PROTECTED]
 Reported By:      aeolianmeson at blitzeclipse dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Semaphore related
 Operating System: Fedora 4
 PHP Version:      5.1.4
 New Comment:

Because you cannot remove SHM segment if it's detached.


Previous Comments:
------------------------------------------------------------------------

[2006-07-30 06:48:54] aeolianmeson at blitzeclipse dot com

Description:
------------
The SHM id returned by shm_attach will produce an error when used with
shm_remove ("PHP Warning:  shm_remove(): The parameter is not a valid
shm_identifier in /clustershare/cluster/shm.php on line 15
"). It CAN be used to detach, though.

Reproduce code:
---------------
// The key used was returned from a call to ftok(), but was placed here
staticly for testing.

$id = shm_attach(1360651186, 20000);
shm_detach($id);
shm_remove($id);


Expected result:
----------------
No error message.

Actual result:
--------------
Produces only the specified error message.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38259&edit=1

Reply via email to