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 this is not your bug, you can add a comment by following this link.
If this is your bug, but 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

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: Fri Mar 29 14:01:28 2024 UTC