ID: 47090 Comment by: crrodriguez at opensuse dot org Reported By: dominique dot fournier at grenoble dot cnrs dot fr dot Status: Open Bug Type: Streams related Operating System: Linux PHP Version: 5.2.8 New Comment:
Cannot reproduce,memory usage is stable with 5_2 and 5_3. Previous Comments: ------------------------------------------------------------------------ [2009-01-13 16:26:42] dominique dot fournier at grenoble dot cnrs dot fr dot 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++) { $...@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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47090&edit=1