php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8216 shm_attach does not seem to return actual shmid reported to the system.
Submitted: 2000-12-12 18:05 UTC Modified: 2000-12-13 04:40 UTC
From: kursat at ttnet dot net dot tr Assigned:
Status: Closed Package: *Function Specific
PHP Version: 4.0.3pl1 OS: Linux Mandrake 7.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kursat at ttnet dot net dot tr
New email:
PHP Version: OS:

 

 [2000-12-12 18:05 UTC] kursat at ttnet dot net dot tr
consider this code
<?
$shmkey = 1234;
$shmid = shm_attach($shmkey);
print $shmid;
$shm_remove($shmkey);
?>

which outputs "1"

everytime I call this fuction, which I expect the shmid reported to the system is printed.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-13 04:40 UTC] stas@php.net
Why do you expect that? Nowhere in the manual it promised
you that shm_attach returns system shared memory ID. It
returns ID that can be used with shm_(put|get)_var, that's it.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC