PHP 4.0 Bug #8305 Updated: RETURNTRANSFER output not properly send back to variable

From: Date: Mon, 01 Jan 2001 20:50:19 +0000
Subject: PHP 4.0 Bug #8305 Updated: RETURNTRANSFER output not properly send back to variable
Groups: php.dev 
Request: Send a blank email to php-dev+get-42553@lists.php.net to get a copy of this message
ID: 8305 Updated by: sterling Reported By: emilebosch@hotmail.com Old-Status: Open Status: Closed Bug Type: cURL related Assigned To: Comments: Fixed in CVS (Once CVS comes back up that is ;-). Previous Comments: --------------------------------------------------------------------------- [2000-12-17 20:16:03] emilebosch@hotmail.com In this code the output has to be send back to $result, it works correctly except for the last character of the "localhost/curl/curl_feed.php" document, its not being outputted whils when using not the RETURNTRANSFER option the output is being output correctly: IE: localhost/curl/curl_feed.php outputs: WITHOUT : curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); this is a test WITH : curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); this is a tes *NoTice* The last character is missing. this can't be good :(( I would aprreciate it highly if someone could take a look at this :-) Kind regards, Emile Bosch <? dl("php_curl.dll"); $ch = curl_init ("localhost/curl/curl_feed.php"); curl_setopt($ch,CURLOPT_POST,1); curl_setopt($ch,CURLOPT_POSTFIELDS,"action=getUser"); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); echo $result = curl_exec ($ch); curl_close ($ch); ?> --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8305

« previous php.dev (#42553) next »