From: [EMAIL PROTECTED] Operating system: Linux, RH8.0 PHP version: 4.3.3RC1 PHP Bug Type: cURL related Bug description: URL in curl_ini() echos out data
Description: ------------ $ch = curl_ini("http://www.php.net/"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $page = curl_exec($ch); Will echo the page out to the browser even though you specified not to do so with the non-zero RETURNTRANSFER value. If you instead do: $ch = curl_ini(); curl_setopt($ch, CURLOPT_URL, "http://www.php.net/"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $page = curl_exec($ch); The problem goes away. -- Edit bug report at http://bugs.php.net/?id=24748&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24748&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24748&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24748&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24748&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24748&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24748&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24748&r=support Expected behavior: http://bugs.php.net/fix.php?id=24748&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24748&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24748&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24748&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24748&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24748&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24748&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24748&r=gnused