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

From: Date: Fri, 15 Jan 2021 22:50:24 +0000
Subject: Bug #76346 [Fbk->Asn]: memory leak
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231589@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 User updated by: vagiz at kaifas dot lt Reported by: vagiz at kaifas dot lt Summary: memory leak -Status: Feedback +Status: Assigned Type: Bug Package: cURL related -Operating System: CentOS 7 +Operating System: CentOS 8 PHP Version: 7.2.5 Assigned To: cmb Block user comment: N Private report: N New Comment: Re-tested versions: PHP 8.0.1 (cli) (built: Jan 5 2021 13:54:54) ( NTS gcc x86_64 ) Copyright (c) The PHP Group Zend Engine v4.0.1, Copyright (c) Zend Technologies with Zend OPcache v8.0.1, Copyright (c), by Zend Technologies PHP 7.4.14 (cli) (built: Jan 5 2021 10:45:06) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.14, Copyright (c), by Zend Technologies PHP 7.3.26 (cli) (built: Jan 5 2021 10:36:07) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.26, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.26, Copyright (c) 1999-2018, by Zend Technologies on CentOS 8; I can confirm - no memory leak after running the same script for 30mins+. Let me know if any help needed, otherwise I think we can close this ticket. Good job PHP team! Previous Comments: ------------------------------------------------------------------------ [2021-01-13 11:07:39] cmb@php.net Does this still happen with any of the actively supported PHP versions[1]? [1] <https://www.php.net/supported-versions.php> ------------------------------------------------------------------------ [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

« previous php.bugs (#231589) next »