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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
14 + 27 = ?
Subscribe to this entry?

 
 [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: Thu Mar 28 12:01:27 2024 UTC