#21873 [NEW]: cURL not work with tmpfile

From: Date: Sat, 25 Jan 2003 08:23:21 +0000
Subject: #21873 [NEW]: cURL not work with tmpfile
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-31206@lists.php.net to get a copy of this message
From: SiberianGhost@hotmail.com Operating system: FreeBSD 4.7 PHP version: 4.3.0 PHP Bug Type: cURL related Bug description: cURL not work with tmpfile 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 bug report at http://bugs.php.net/?id=21873&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21873&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21873&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21873&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21873&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21873&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21873&r=support Expected behavior: http://bugs.php.net/fix.php?id=21873&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21873&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21873&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21873&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21873&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21873&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21873&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21873&r=gnused

« previous php.bugs (#31206) next »