Bug #76346 [Opn->Fbk]: memory leak

From: Date: Wed, 13 Jan 2021 11:07:39 +0000
Subject: Bug #76346 [Opn->Fbk]: memory leak
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231530@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76346&edit=1

 ID:                 76346
 Updated by:         cmb@php.net
 Reported by:        vagiz at kaifas dot lt
 Summary:            memory leak
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            cURL related
 Operating System:   CentOS 7
 PHP Version:        7.2.5
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Does this still happen with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>


Previous Comments:
------------------------------------------------------------------------
[2019-03-27 07:49:44] token0801 at qq dot com

I see these functions' calling in interval.c: 
60 timelib_apply_localtime(one, 0);
61 timelib_apply_localtime(two, 0);

When I set 2nd param to 1, the result is correct. But I don't know this modifying whether
effect other functions or not.

timelib_apply_localtime(one, 1);
timelib_apply_localtime(two, 1);

------------------------------------------------------------------------
[2018-05-16 01:52:44] vagiz at kaifas dot lt

My server versions:
PHP 5.6.36 (cli) (built: Apr 25 2018 09:44:45)
PHP 7.0.30 (cli) (built: Apr 24 2018 20:40:19) ( NTS )
PHP 7.1.17 (cli) (built: Apr 25 2018 07:24:50) ( NTS )
PHP 7.2.5 (cli) (built: Apr 24 2018 19:12:06) ( NTS )

all of them have the same bug

------------------------------------------------------------------------
[2018-05-16 01:30:29] vagiz at kaifas dot lt

My php is from remi http://rpms.remirepo.net/enterprise/remi-release-7.rpm

------------------------------------------------------------------------
[2018-05-16 01:26:04] vagiz at kaifas dot lt

Description:
------------
system memory keeps growing when php infinity loop is used with curl inside

Test script:
---------------
<?php
while (1) {
    $curl_handle = curl_init();
    curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 40);
    curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);

    curl_setopt($curl_handle, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0)
Gecko/20180101 Firefox/60.1');
    curl_setopt($curl_handle, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt($curl_handle, CURLOPT_URL, 'http://example.com');
    $test = curl_exec($curl_handle);
    curl_close($curl_handle);
    unset($test, $curl_handle);
}
?>



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=76346&edit=1


Thread (7 messages)

« previous php.bugs (#231530) next »