1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 06:51:18 +02:00
Files
archived-php-src/ext/sysvshm/tests/007.phpt
Nikita Popov 7485978339 Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

31 lines
428 B
PHP

--TEST--
shm_remove() tests
--EXTENSIONS--
sysvshm
--SKIPIF--
<?php
if (!function_exists('ftok')){ print 'skip'; }
?>
--FILE--
<?php
$key = ftok(__FILE__, 't');
$s = shm_attach($key, 1024);
var_dump(shm_remove($s));
shm_detach($s);
try {
shm_remove($s);
} catch (Error $exception) {
echo $exception->getMessage() . "\n";
}
echo "Done\n";
?>
--EXPECT--
bool(true)
Shared memory block has already been destroyed
Done