/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
sysvshm
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/sysvshm/tests/007.phpt
--TEST-- shm_remove() tests --SKIPIF-- <?php if (!extension_loaded("sysvshm")){ print 'skip'; } 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
Copyright ©2k19 -
Hexid
|
Tex7ure