Lines Matching refs:shm_id
12 $shm_id = shmop_open($hex_shm_id, "n", 0644, 1024);
13 if (!$shm_id) {
19 echo "shm size is: " . ($shm_size = shmop_size($shm_id)) . "\n";
22 $written = shmop_write($shm_id, $write_d1, 0);
29 echo "data in memory is: " . shmop_read($shm_id, 0, $written) . "\n";
32 $shm_id = shmop_open($hex_shm_id, "a", 0644, 1024);
33 if (!$shm_id) {
39 echo "data in memory is: " . shmop_read($shm_id, 0, $written) . "\n";
43 shmop_write($shm_id, $write_d1, $written);
49 $shm_id = shmop_open($hex_shm_id, "w", 0644, 1024);
50 if (!$shm_id) {
57 $written = shmop_write($shm_id, $write_d2, $written);
64 echo "data in memory is: " . shmop_read($shm_id, 0, strlen($write_d1 . $write_d2)) . "\n";
67 if (!shmop_delete($shm_id)) {