From: [EMAIL PROTECTED] Operating system: Windows 2000 Server PHP version: 4.1.1 PHP Bug Type: Reproducible crash Bug description: php crash when using curl with returntransfer
function fetchHeader($url, $returntransfer) { $ch = curl_init ($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, $returntransfer); curl_setopt ($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_NOBODY, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_exec ($ch); } $arrTestUrl = array("www.alle-autos.ch", "www.alpendrifter.ch", "www.cam-schweiz.ch", "www.bwinfo.ch", "www.canonshop.ch", "www.bmparch.ch","www.jahaya.ch"); reset($arrTestUrl); foreach($arrTestUrl as $currUrl) { echo $currUrl . "<br>"; flush(); $currUrl = "http://" . $currUrl; fetchHeader($currUrl,0); } Running the above script generates no error. In my case the script crashed when using fetchHeader($currUrl,1) instead of fetchHeader($currUrl,1), for every given url. I am using the curl that comes with php 4.1.1 and php as a CGI executable. -- Edit bug report at: http://bugs.php.net/?id=14902&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]