← Back
Editing: shutdown_crash_0.phpt
--TEST-- Shutdown crash when attached/removed same key segment multiple times --SKIPIF-- <?php if (!extension_loaded("sysvshm")){ print 'skip'; } ?> --FILE-- <?php /*$key = ftok(__FILE__, 't'); var_dump($key);*/ $key = 42; var_dump($s = shm_attach($key, 1024)); shm_remove($s); var_dump($s = shm_attach($key, 1024)); shm_remove($s); ?> --EXPECT-- object(SysvSharedMemory)#1 (0) { } object(SysvSharedMemory)#2 (0) { }
Save File
Cancel