php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8305 RETURNTRANSFER output not properly send back to variable
Submitted: 2000-12-17 20:16 UTC Modified: 2001-01-03 11:08 UTC
From: emilebosch at hotmail dot com Assigned:
Status: Closed Package: cURL related
PHP Version: 4.0.3pl1 OS: Win95
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
20 + 47 = ?
Subscribe to this entry?

 
 [2000-12-17 20:16 UTC] emilebosch at hotmail dot 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);
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-01 15:50 UTC] sterling@php.net
Fixed in CVS (Once CVS comes back up that is ;-).
 [2001-01-03 11:08 UTC] sniper@php.net
Now it's really fixed.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 00:01:27 2024 UTC