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
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: 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: Sun Dec 22 01:01:30 2024 UTC