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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 04:01:30 2024 UTC