PHP 4.0 Bug #8216 Updated: shm_attach does not seem to return actual shmid reported to the system.

From: Date: Wed, 13 Dec 2000 09:40:07 +0000
Subject: PHP 4.0 Bug #8216 Updated: shm_attach does not seem to return actual shmid reported to the system.
Groups: php.dev 
Request: Send a blank email to php-dev+get-41134@lists.php.net to get a copy of this message
ID: 8216 Updated by: stas Reported By: kursat@ttnet.net.tr Old-Status: Open Status: Closed Bug Type: *Function Specific Assigned To: Comments: 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. Previous Comments: --------------------------------------------------------------------------- [2000-12-12 18:05:09] kursat@ttnet.net.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. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8216

« previous php.dev (#41134) next »