Lines Matching refs:shm_id
16 $shm_id = shmop_open($hex_shm_id, "n", 0644, 1024);
17 if (!$shm_id) {
23 echo "shm size is: " . ($shm_size = shmop_size($shm_id)) . "\n";
26 $written = shmop_write($shm_id, $write_d1, 0);
33 echo "data in memory is: " . shmop_read($shm_id, 0, $written) . "\n";
36 $shm_id = shmop_open($hex_shm_id, "a", 0644, 1024);
37 if (!$shm_id) {
43 echo "data in memory is: " . shmop_read($shm_id, 0, $written) . "\n";
47 shmop_write($shm_id, $write_d1, $written);
53 $shm_id = shmop_open($hex_shm_id, "w", 0644, 1024);
54 if (!$shm_id) {
61 $written = shmop_write($shm_id, $write_d2, $written);
68 echo "data in memory is: " . shmop_read($shm_id, 0, strlen($write_d1 . $write_d2)) . "\n";
71 if (!shmop_delete($shm_id)) {