Bug #40611 [Com]: cURL memory error
| From: | aca85 at ya dot ru | Date: | Sun, 03 Jul 2016 16:00:06 +0000 |
| Subject: | Bug #40611 [Com]: cURL memory error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-202024@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=40611&edit=1
ID: 40611
Comment by: aca85 at ya dot ru
Reported by: zamorov at edinorog dot ru
Summary: cURL memory error
Status: Closed
Type: Bug
Package: cURL related
Operating System: FreeBSD 4.11
PHP Version: 4CVS-2007-02-23 (snap)
Assigned To: tony2001
Block user comment: N
Private report: N
New Comment:
как ÑÑда Ð±Ð°Ñ Ð¿ÑиÑвоиÑÑ? http://oneprog.ru/
Previous Comments:
------------------------------------------------------------------------
[2007-02-26 09:14:49] tony2001@php.net
This bug has been fixed in CVS.
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/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2007-02-24 10:28:39] zamorov at edinorog dot ru
I get snapshot build on Feb 24, 2007 09:30 GMT
Memory bug still not fixed.
Add before:
curl_setopt($curl, CURLOPT_URL,
'http://bar-navig.yandex.ru/u?sample=test');
$return = curl_exec($curl);
this line
curl_setopt($curl, CURLOPT_URL, 'http://bar-navig.yandex.ru/u?ver=2&lang=1049&ur
l=www.php.net&target=_No__Name:5&show=1&thc=0');
$return = curl_exec($curl);
and reload a script of 10-20 times.
------------------------------------------------------------------------
[2007-02-23 20:53:39] tony2001@php.net
This bug has been fixed in CVS.
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/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2007-02-23 18:05:35] zamorov at edinorog dot ru
Description:
------------
cURL 1.15.5, 1.16.0 and 1.16.1
Got many error in log if request site with empty body.
Sample:
http://bar-navig.yandex.ru/u?sample=test
HTTP/1.1 200 Ok
Connection: close
Cache-control: no-cache, max-age=0
Expires: Thu, 01 Jan 1970 00:00:01 GMT
Content-Type: text/html; charset=windows-1251
and no body.
Reproduce code:
---------------
<?php
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_TIMEOUT, 30);
curl_setopt($curl, CURLOPT_USERAGENT, '');
curl_setopt($curl, CURLOPT_URL, 'http://bar-navig.yandex.ru/u?sample=test');
$return = curl_exec($curl);
echo (curl_errno($this->Curl) == 0) ? 'ok' : 'error';
?>
Expected result:
----------------
error.log
many lines with
httpd in free(): warning: page is already free
httpd in free(): warning: chunk is already free
and
Integer overflow in memory_limit check detected
Actual result:
--------------
Zero page.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=40611&edit=1