|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15063 shm_attach() ignores size and permissions
Submitted: 2002-01-15 20:20 UTC Modified: 2002-02-12 12:58 UTC
From: samc at atnet dot net dot au Assigned:
Status: Not a bug Package: Semaphore related
PHP Version: 4.1.0 OS: Debian/testing Linux 2.2.18pre21
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:
Solve the problem:
30 - 14 = ?
Subscribe to this entry?

 [2002-01-15 20:20 UTC] samc at atnet dot net dot au
it seems regardless of how much you specify in the function call, the default of 10,000 overrides this value. to allocate the amount i required, i had to set the sysvshm.init_mem value in the php.ini file to a reasonably large figure. similarly the permissions are always 0666 regardless of what you specify.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-12 12:58 UTC]
The following code was tested:

    $key = shm_attach(1000, 128, 0755);

And here is what `ipcs` reports:
key       shmid     owner     perms     bytes     nattch
0x000003e8 1413      httpd     755       128       0

Tested on these platforms:
Linux 2.2.16C24_III #1 Thu Mar 22 21:17:39 PST 2001 i586 unknown (as Apache module and CLI)
Linux 2.4.17 #1 Mon Jan 14 21:11:16 EST 2002 i686 unknown (as CGI/CLI)

Please try 4.1.1 or a CVS snapshot from and reopen if the problem still exists.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Aug 11 23:05:44 2022 UTC