summaryrefslogtreecommitdiff
path: root/ext/sysvshm/tests/shutdown_crash_0.phpt
blob: 8509316fa134ad9fd47439e48518a2867a73b187 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--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);

--EXPECTF--
resource(%d) of type (sysvshm)
resource(%d) of type (sysvshm)