|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2016-03-29 14:34 UTC] wcode404 at gmail dot com
Description: ------------ --- From manual page: http://www.php.net/function.shmop-delete --- shmop_delete() not delete memory block Perhaps the reason is that i do not have administrator rights in a Windows. Test script: --------------- $key = 0xFF; $data = 'foo'; $shmid = shmop_open($key, 'w', 0644, strlen($data)); assert(shmop_write($shmid, $data, 0), 'Failed write'); unset($shmid); $shmid = shmop_open($key, 'c', 0644, strlen($data)); assert($data == shmop_read($shmid, 0, shmop_size($shmid)), 'Failed read'); unset($shmid); $shmid = shmop_open($key, 'c', 0644, strlen($data)); assert(shmop_delete($shmid), 'Failed delete'); unset($shmid); $shmid = shmop_open($key, 'c', 0644, strlen($data)); assert($data != shmop_read($shmid, 0, shmop_size($shmid)), 'Still exists'); Expected result: ---------------- No errors and empty result Actual result: -------------- Warning: assert(): Still exists failed PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 00:00:01 2025 UTC |
$ php -v PHP 5.6.14 (cli) (built: Sep 30 2015 14:32:12) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans