Bug #79199 [NEW]: curl_copy_handle() memory leak
| From: | admin at yurunsoft dot com | Date: | Fri, 31 Jan 2020 01:42:11 +0000 |
| Subject: | Bug #79199 [NEW]: curl_copy_handle() memory leak | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-225266@lists.php.net to get a copy of this message | ||
From: admin at yurunsoft dot com
Operating system: All
PHP version: Irrelevant
Package: cURL related
Bug Type: Bug
Bug description:curl_copy_handle() memory leak
Description:
------------
---
From manual page: https://php.net/function.curl-copy-handle
---
When I use PHP >= 7.0
curl_copy_handle() memory leak
But, when I use PHP <= 5.6 it's OK!
Test script:
---------------
<?php
for($i = 0; $i < 5; ++$i)
{
$c1 = curl_init();
$c2 = curl_copy_handle($c1);
curl_close($c2);
curl_close($c1);
var_dump(memory_get_usage());
}
var_dump(PHP_VERSION);
Expected result:
----------------
int(120784)
int(120824)
int(120824)
int(120824)
int(120824)
string(6) "5.6.27"
Actual result:
--------------
int(869760)
int(869816)
int(870160)
int(870184)
int(870208)
string(23) "7.2.19-0ubuntu0.18.04.1"
--
Edit bug report at https://bugs.php.net/bug.php?id=79199&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79199&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79199&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79199&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79199&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79199&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79199&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79199&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79199&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79199&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79199&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79199&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79199&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79199&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79199&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79199&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79199&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79199&r=mysqlcfg