|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-01-14 02:28 UTC] crrodriguez at opensuse dot org
[2009-01-14 10:48 UTC] dominique dot fournier at grenoble dot cnrs dot fr dot
[2009-04-06 12:57 UTC] jani@php.net
[2009-04-14 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 04:00:02 2025 UTC |
Description: ------------ When export USE_ZEND_ALLOC=1, before run the following script in CLI, there is a memory_leak. When export USE_ZEND_ALLOC=0, the script leave on the same value. The IP in the script is available, but the port is closed (no service available on this port). Reproduce code: --------------- <? for ($i =0 ; $i <30 ; $i++) { $fp=@stream_socket_client('tcp://127.0.0.1:800', $error, $err); unset ($fp); unset ($error); unset ($err); echo memory_get_usage()."\n"; } ?> Expected result: ---------------- Always the same value (in my case, when ALLOC=0, 8200) Actual result: -------------- 49936 50016 50044 ... repeat with an increment 30 times