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

From: Date: Mon, 18 Dec 2000 01:16:03 +0000
Subject: PHP 4.0 Bug #8305: RETURNTRANSFER output not properly send back to variable
Groups: php.dev 
Request: Send a blank email to php-dev+get-41696@lists.php.net to get a copy of this message
From: emilebosch@hotmail.com Operating system: Win95 PHP version: 4.0.3pl1 PHP Bug Type: cURL related Bug description: RETURNTRANSFER output not properly send back to variable 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); ?> -- Edit Bug report at: http://bugs.php.net/?id=8305&edit=1

« previous php.dev (#41696) next »