php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #9032 Problems with shm_remove
Submitted: 2001-01-31 10:15 UTC Modified: 2001-05-15 03:54 UTC
From: neva at nevalabs dot org Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.4pl1 OS: Redhat 7.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: neva at nevalabs dot org
New email:
PHP Version: OS:

 

 [2001-01-31 10:15 UTC] neva at nevalabs dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-15 03:54 UTC] swm@php.net
Having committed a fix to CVS, PHP now works according to
the documentation.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon May 05 23:01:28 2025 UTC