go to bug id or search bugs for
consider this code
$shmkey = 1234;
$shmid = shm_attach($shmkey);
which outputs "1"
everytime I call this fuction, which I expect the shmid reported to the system is printed.
Add a Patch
Add a Pull Request
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.