PHP 4.0 Bug #9032 Updated: Problems with shm_remove
| From: | sniper@php.net | Date: | Fri, 02 Feb 2001 02:14:49 +0000 |
| Subject: | PHP 4.0 Bug #9032 Updated: Problems with shm_remove | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45581@lists.php.net to get a copy of this message | ||
ID: 9032
Updated by: sniper
Reported By: neva@nevalabs.org
Status: Open
Old-Bug Type: Semaphore related
Bug Type: Documentation problem
Assigned To:
Comments:
Previous Comments:
---------------------------------------------------------------------------
[2001-01-31 10:15:04] neva@nevalabs.org
We are having problems using shm functions.
Taking a look at sysvshm.c, it seems that shm_remove
take as argument **key** and not **shm_identifier** as
documented (even on the snapshot documentation).
Some tests show the same results. Here follows the code
to test it:
<?php
$key = 5;
$shm_identifier = shm_attach($key);
shm_remove($shm_identifier);
$key = 6;
$shm_identifier = shm_attach($key);
shm_remove($shm_identifier);
$key = 7;
$shm_identifier = shm_attach($key);
shm_remove($shm_identifier);
echo "Many warnings appeared above<br>";
shm_remove(5);
shm_remove(6);
shm_remove(7);
echo "No warnings now<br>";
?>
Regards,
Claudio Neves
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=9032