Bug #76346 [Com]: memory leak

From: Date: Wed, 27 Mar 2019 07:49:44 +0000
Subject: Bug #76346 [Com]: memory leak
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220220@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 Comment by: token0801 at qq dot com Reported by: vagiz at kaifas dot lt Summary: memory leak Status: Open Type: Bug Package: cURL related Operating System: CentOS 7 PHP Version: 7.2.5 Block user comment: N Private report: N New Comment: 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); Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#220220) next »