Edit report at https://bugs.php.net/bug.php?id=47429&edit=1
ID: 47429 Updated by: larue...@php.net Reported by: iv dot zhekov at gmail dot com Summary: Memory leak using shmop_open -Status: Feedback +Status: Not a bug Type: Bug Package: Semaphore related Operating System: Windows XP PHP Version: 5.2CVS-2009-02-17 Block user comment: N Private report: N New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [2011-02-25 11:41:06] giezer at eu dot objectiflune dot com Tested this with 5.2.17 and I can still reproduce this problem it isn't fixed. ------------------------------------------------------------------------ [2010-08-26 00:08:29] fel...@php.net Please try using this snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2009-02-18 09:16:15] iv dot zhekov at gmail dot com Still reproduced using latest snapshot. ------------------------------------------------------------------------ [2009-02-17 22:58:44] iv dot zhekov at gmail dot com Description: ------------ Function shmop_open increases memory used by Apache with about 4KB every time it is invoked, and doesn't free it. It looks like memory allocated for php_shmop struct is not freed. Reproduce code: --------------- <? $shmid = shmop_open(0xff2, "c", 0644, 8); shmop_close($shmid); ?> Expected result: ---------------- Memory used by apache should be increased only once, when shared memory segment is created. Refreshing the page should not increase used memory or it must free it when script ends. Actual result: -------------- Every time the script is executed additional 4KB are added to the memory used by Apache. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=47429&edit=1