mirror of
https://github.com/php/php-src.git
synced 2024-09-30 14:26:12 +00:00
23 lines
412 B
PHP
23 lines
412 B
PHP
--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)
|
|
|