Bug #76346 [Opn]: memory leak

From: Date: Wed, 16 May 2018 01:30:30 +0000
Subject: Bug #76346 [Opn]: memory leak
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215276@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: Open Type: Bug Package: cURL related Operating System: CentOS 7 PHP Version: 7.2.5 Block user comment: N Private report: N New Comment: My php is from remi http://rpms.remirepo.net/enterprise/remi-release-7.rpm Previous Comments: ------------------------------------------------------------------------ [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 (#215276) next »