|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75812 shmop_delete doesn't delete memory segment
Submitted: 2018-01-13 19:22 UTC Modified: 2018-09-18 17:02 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: gajowy at agzeta dot pl Assigned: cmb (profile)
Status: Duplicate Package: *Extensibility Functions
PHP Version: 7.1.13 OS: Windows 10 64bit
Private report: No CVE-ID: None
 [2018-01-13 19:22 UTC] gajowy at agzeta dot pl
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:
var_dump( shmop_delete($mid) );
var_dump( $mid );


Expected result:
resource(4) of type (Unknown)
resource(5) of type (shmop)

Actual result:
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



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-09-18 17:02 UTC]
-Status: Open +Status: Duplicate -Package: Variables related +Package: *Extensibility Functions -Assigned To: +Assigned To: cmb
 [2018-09-18 17:02 UTC]
Duplicate of bug #65987.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 01:01:31 2024 UTC