Edit report at https://bugs.php.net/bug.php?id=65458&edit=1

 ID:                 65458
 Updated by:         ahar...@php.net
 Reported by:        peter57 at post dot sk
 Summary:            curl memory leak
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            cURL related
 Operating System:   Linux
 PHP Version:        5.5.2
-Assigned To:        
+Assigned To:        aharvey
 Block user comment: N
 Private report:     N

 New Comment:

The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2013-08-17 15:43:12] peter57 at post dot sk

Bug present in PHP 5.5.2

------------------------------------------------------------------------
[2013-08-16 06:56:37] peter57 at post dot sk

Description:
------------
When CURLOPT_HTTPHEADER is called more than once on the same curl handle, 
php/curl does not free the memory of the previous header data.

Similar to bug 63859.

Test script:
---------------
<?php

  $ch = curl_init();

  echo memory_get_usage(), "\n";

  for ($i = 0; $i < 10000; $i++)
  {
    curl_setopt($ch, CURLOPT_HTTPHEADER, [ "SOAPAction: getItems" ]);
  }

  echo memory_get_usage(), "\n";

  curl_close($ch);

  echo memory_get_usage(), "\n";




------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=65458&edit=1

Reply via email to