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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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 Apr 27 21:01:29 2024 UTC