Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278707 - dev-lang/php-5.2.10: curl_setopt fails for file opened with tmpfile()
Summary: dev-lang/php-5.2.10: curl_setopt fails for file opened with tmpfile()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-22 16:13 UTC by Jussi Sirpoma
Modified: 2010-07-05 14:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jussi Sirpoma 2009-07-22 16:13:35 UTC
curl_setopt fails with warning message in the following code:

$headerStream = tmpfile();
curl_setopt( $c, CURLOPT_WRITEHEADER, $headerStream );

The warning message is:

Warning: curl_setopt(): the provided file handle is not writable in...

This has been noted and presumably fixed in php. See http://bugs.php.net/bug.php?id=48733. Where you can find a complete test case.

I tested with php-5.2.10-r1 as well, but it did not fix this.

Reproducible: Always

Steps to Reproduce:
Comment 1 Christian Hoffmann (RETIRED) gentoo-dev 2009-07-27 10:29:31 UTC
I don't see a reason for not fixing this regression, so it will be part of the next revision.
Comment 2 Matti Bickel (RETIRED) gentoo-dev 2010-07-05 14:35:33 UTC
This is fixed in php-5.2.13 and php-5.3.2, closing.