Bug #76976 [NEW]: xmlrpc_decode is creating a memory leak
| From: | marek dot salzinger at gmail dot com | Date: | Fri, 05 Oct 2018 12:41:33 +0000 |
| Subject: | Bug #76976 [NEW]: xmlrpc_decode is creating a memory leak | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-217434@lists.php.net to get a copy of this message | ||
From: marek dot salzinger at gmail dot com
Operating system: Windows 10
PHP version: 7.2.10
Package: XML related
Bug Type: Bug
Bug description:xmlrpc_decode is creating a memory leak
Description:
------------
---
From manual page: http://www.php.net/function.xmlrpc-decode
---
The function xmlrpc_decode is creating a memory leak on Windows. I am
using PHP 7.2.9.
I tried my code on Ubuntu and there was no memoryleak involved.
Test script:
---------------
//pseudo:
while( condition ) {
$ch = curl_init( $xml_rpc_url . $xml_rpc_login );
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_ENCODING ,"UTF-8");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:
text/xml'));
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_request_query);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$xml_response_aa[$imported_data_type][$group_name] =
xmlrpc_decode(utf8_encode(curl_exec($ch)));
curl_close($ch);
unset($ch);
}
--
Edit bug report at https://bugs.php.net/bug.php?id=76976&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76976&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76976&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76976&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76976&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76976&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76976&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76976&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76976&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76976&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76976&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76976&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76976&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76976&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76976&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76976&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76976&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76976&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76976&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76976&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76976&r=mysqlcfg