Bug #76346 [Opn]: memory leak
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 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
Previous Comments:
------------------------------------------------------------------------
[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)