Edit report at http://bugs.php.net/bug.php?id=52820&edit=1

 ID:                 52820
 Updated by:         [email protected]
 Reported by:        klawd+phpbugs at kamundo dot de
 Summary:            curl doesn't write to php://temp or /memory
-Status:             Assigned
+Status:             Closed
 Type:               Bug
 Package:            Streams related
 Operating System:   Ubuntu
 PHP Version:        5.3.3
 Assigned To:        cataphract
 Block user comment: N

 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2010-11-15 19:22:54] [email protected]

Automatic comment from SVN on behalf of cataphract
Revision: http://svn.php.net/viewvc/?view=revision&revision=305379
Log: - Fixed bug #52820 (writes to fopencookie FILE* not commited when
seeking the
  stream).

------------------------------------------------------------------------
[2010-11-15 06:08:29] [email protected]

I've identified the problem and I will commit a fix tomorrow.

------------------------------------------------------------------------
[2010-09-12 21:49:47] klawd+phpbugs at kamundo dot de

I didn't get the warning in my latest run. It could stem from the
missing open modes which would be weird but possible.

------------------------------------------------------------------------
[2010-09-12 21:37:43] [email protected]

Right.



The problem was that I was testing on Windows, where this works.



I've just tested in Ubuntu, and indeed the string was empty there.
However, I didn't get the warning you've described.

------------------------------------------------------------------------
[2010-09-12 19:31:26] klawd+phpbugs at kamundo dot de

Fixed test script, now with example.com.



$handle=curl_init('http://example.com');

curl_setopt($handle, CURLOPT_VERBOSE, true);

curl_setopt($handle, CURLOPT_STDERR, fopen('php://output', "w+"));

curl_exec($handle);

curl_setopt($handle, CURLOPT_STDERR, $output=fopen('php://temp',
"w+"));

curl_exec($handle);

rewind($output);

var_dump(stream_get_contents($output));



Please use var_dump. You will see that it's empty. There should be two
outputs:

- the one directly written to STDOUT

- one with string(n) and wrapped by var_dump's quotes

but the latter is empty:

string(0) ""



I tried both memory and temp

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=52820


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52820&edit=1

Reply via email to