Bug #75812 [Opn->Dup]: shmop_delete doesn't delete memory segment

From: Date: Tue, 18 Sep 2018 17:02:54 +0000
Subject: Bug #75812 [Opn->Dup]: shmop_delete doesn't delete memory segment
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217126@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75812&edit=1 ID: 75812 Updated by: cmb@php.net Reported by: gajowy at agzeta dot pl Summary: shmop_delete doesn't delete memory segment -Status: Open +Status: Duplicate Type: Bug -Package: Variables related +Package: *Extensibility Functions Operating System: Windows 10 64bit PHP Version: 7.1.13 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Duplicate of bug #65987. Previous Comments: ------------------------------------------------------------------------ [2018-01-13 19:22:23] gajowy at agzeta dot pl Description: ------------ shmop_delete() function doesn't delete shared memory block. The function returns true however the block is not deleted and one can still read/write to it and can not create a new one (shmop_open) with the same key. Test script: --------------- $mid=shmop_open(1,'n',0644,128); var_dump( shmop_delete($mid) ); var_dump( $mid ); $mid=shmop_open(1,'n',0644,128); var_dump($mid); Expected result: ---------------- bool(true) resource(4) of type (Unknown) resource(5) of type (shmop) Actual result: -------------- bool(true) resource(4) of type (shmop) PHP Warning: shmop_open(): unable to attach or create shared memory segment 'No error' in test.php on line 6 bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75812&edit=1

« previous php.bugs (#217126) next »