1--TEST-- 2Shutdown crash when attached/removed same key segment multiple times 3--SKIPIF-- 4<?php 5if (!extension_loaded("sysvshm")){ print 'skip'; } 6?> 7--FILE-- 8<?php 9 10/*$key = ftok(__FILE__, 't'); 11var_dump($key);*/ 12$key = 42; 13 14var_dump($s = shm_attach($key, 1024)); 15shm_remove($s); 16var_dump($s = shm_attach($key, 1024)); 17shm_remove($s); 18?> 19--EXPECT-- 20object(SysvSharedMemory)#1 (0) { 21} 22object(SysvSharedMemory)#2 (0) { 23} 24