Description:
------------
The options CURLOPT_FILE, CURLOPT_INFILE, CURLOPT_WRITEHEADER and CURLOPT_STDERR do not accept persistent handles.
Since there appears to be special no reason for that, it's probably of a simple mistake of not including the return of php_file_le_pstream() in the list of accepted resource types.

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.