Bug #75812 [NEW]: shmop_delete doesn't delete memory segment

From: Date: Sat, 13 Jan 2018 19:22:27 +0000
Subject: Bug #75812 [NEW]: shmop_delete doesn't delete memory segment
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213531@lists.php.net to get a copy of this message
From: gajowy at agzeta dot pl Operating system: Windows 10 64bit PHP version: 7.1.13 Package: Variables related Bug Type: Bug Bug description:shmop_delete doesn't delete memory segment 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 bug report at https://bugs.php.net/bug.php?id=75812&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75812&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75812&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75812&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75812&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75812&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75812&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75812&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75812&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75812&r=support Expected behavior: https://bugs.php.net/fix.php?id=75812&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75812&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75812&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75812&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75812&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75812&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75812&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75812&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75812&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75812&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75812&r=mysqlcfg

« previous php.bugs (#213531) next »