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--EXPECTF--
20resource(%d) of type (sysvshm)
21resource(%d) of type (sysvshm)
22
23