ID:               40611
 Updated by:       [EMAIL PROTECTED]
 Reported By:      zamorov at edinorog dot ru
-Status:           Assigned
+Status:           Closed
 Bug Type:         cURL related
 Operating System: FreeBSD 4.11
 PHP Version:      4CVS-2007-02-23 (snap)
 Assigned To:      tony2001
 New Comment:

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.




Previous Comments:
------------------------------------------------------------------------

[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 http://bugs.php.net/?id=40611&edit=1

Reply via email to