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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: emilebosch at hotmail dot com
New email:
PHP Version: OS:

 

 [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: Thu Apr 25 08:01:28 2024 UTC