#40611 [Opn->Asn]: cURL memory error

From: Date: Fri, 23 Feb 2007 20:30:06 +0000
Subject: #40611 [Opn->Asn]: cURL memory error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-109429@lists.php.net to get a copy of this message
ID: 40611 Updated by: tony2001@php.net Reported By: zamorov at edinorog dot ru -Status: Open +Status: Assigned Bug Type: cURL related Operating System: FreeBSD 4.11 PHP Version: 4CVS-2007-02-23 (snap) -Assigned To: +Assigned To: tony2001 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

« previous php.bugs (#109429) next »