ID: 21873 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: cURL related Operating System: FreeBSD 4.7 PHP Version: 4.3.0 New Comment:
It's fseek BUG Whe i modify code to fseek($fp,1,SEEK_SET); fseek($fp,0,SEEK_SET); All work correctly Previous Comments: ------------------------------------------------------------------------ [2003-01-25 02:23:21] [EMAIL PROTECTED] This function return empty result. In PHP 4.2.1 all work correctly. function _HttpsReq($addr) { $ch = curl_init("https://192.0.0.1".$addr); curl_setopt($ch, CURLOPT_HEADER, 0); $fp = tmpfile(); // fwrite($fp," "); curl_setopt ($ch, CURLOPT_FILE, $fp); curl_exec($ch); curl_close($ch); fseek($fp,0,SEEK_SET); $result = fgets($fp,1024); fclose($fp); return $result; } //return empty result When i uncomment string fwrite($fp," "); All work correctly. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21873&edit=1