|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-10-23 16:02 UTC] ab@php.net
-Status: Open
+Status: Not a bug
[2013-10-23 16:02 UTC] ab@php.net
[2013-10-24 00:56 UTC] sakamoto dot ta at saxa dot co dot jp
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 18 02:00:01 2025 UTC |
Description: ------------ OS:Windows 2008 Server R2 PHP:Version 5.3.9 When I call the () shm_close the () shm_open, handle name \BaseNamedObjects\TSRM_SHM_DESCRIPTOR:x and \BaseNamedObjects\TSRM_SHM_SEGMENT:x remains without being released. The amount of memory used will continue to increase. This problem does not occur on Linux. Test script: --------------- <?php $shm_id = 0; $hex_shm_id = 0xff3; $write_d1 = "test #1 of the shmop() extension"; $write_d2 = "test #2 append data to shared memory segment"; for( ; ; ) { echo "shm open for create : "; $shm_id = shmop_open($hex_shm_id, "c", 0644, 1024); if (!$shm_id) { die("failed\n"); } else { echo "ok[".$shm_id."]\n"; } echo "shm size is: " . ($shm_size = shmop_size($shm_id)) . "\n"; echo "shm write test #1: "; $written = shmop_write($shm_id, $write_d1, 0); if ($written != strlen($write_d1)) { echo "failed\n"; } else { echo "ok\n"; } echo "data in memory is: " . shmop_read($shm_id, 0, $written) . "\n"; shmop_close($shm_id); $shm_id = 0; sleep(1); } ?> Expected result: ---------------- Memory leak and handle leak does not occur.