1--TEST-- 2shm_remove() tests 3--SKIPIF-- 4<?php 5if (!extension_loaded("sysvshm")){ print 'skip'; } 6if (!function_exists('ftok')){ print 'skip'; } 7?> 8--FILE-- 9<?php 10 11$key = ftok(__FILE__, 't'); 12$s = shm_attach($key, 1024); 13 14var_dump(shm_remove($s)); 15 16shm_detach($s); 17try { 18 shm_remove($s); 19} catch (Error $exception) { 20 echo $exception->getMessage() . "\n"; 21} 22 23echo "Done\n"; 24?> 25--EXPECT-- 26bool(true) 27Shared memory block has already been destroyed 28Done 29