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