Bug #15063 Updated: shm_attach() ignores size and permissions

From: Date: Tue, 12 Feb 2002 17:58:15 +0000
Subject: Bug #15063 Updated: shm_attach() ignores size and permissions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198@lists.php.net to get a copy of this message
ID: 15063 Updated by: elixer@php.net Reported By: samc@atnet.net.au -Status: Open +Status: Bogus Bug Type: Semaphore related Operating System: Debian/testing Linux 2.2.18pre21 PHP Version: 4.1.0 New Comment: The following code was tested: <?php $key = shm_attach(1000, 128, 0755); shm_detach($key); ?> And here is what ipcs reports: key shmid owner perms bytes nattch 0x000003e8 1413 httpd 755 128 0 Tested on these platforms: Linux host.com 2.2.16C24_III #1 Thu Mar 22 21:17:39 PST 2001 i586 unknown (as Apache module and CLI) Linux host.com 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 http://snaps.php.net/ and reopen if the problem still exists. Sean Previous Comments: ------------------------------------------------------------------------ [2002-01-15 20:20:14] samc@atnet.net.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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15063&edit=1

« previous php.bugs (#198) next »