Req #74868 [NEW]: CURLFile does not allow to create an object from a stream

From: Date: Thu, 06 Jul 2017 18:59:54 +0000
Subject: Req #74868 [NEW]: CURLFile does not allow to create an object from a stream
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209866@lists.php.net to get a copy of this message
From:             vladshpilberg at gmail dot com
Operating system: 
PHP version:      7.0.21
Package:          cURL related
Bug Type:         Feature/Change Request
Bug description:CURLFile does not allow to create an object from a stream

Description:
------------
---
From manual page: http://www.php.net/class.curlfile
---


CURLFile does not allow to create an object from a stream, it always
requires file to be saved on a server first, which is not very
convenient. It definitely reads file to a stream somewhere under hood,
why not allow to create it from a stream?

I, for example, have a task of reading file from AWS S3 and passing it
to some API. I can do it 'old way' using @, but it's deprecated now and
I have to save it to temp location on my server first, which gives me an
unnecessary headache of storage management.


-- 
Edit bug report at https://bugs.php.net/bug.php?id=74868&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=74868&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=74868&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=74868&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=74868&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=74868&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=74868&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=74868&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=74868&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=74868&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=74868&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=74868&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=74868&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=74868&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74868&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=74868&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=74868&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=74868&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74868&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=74868&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=74868&r=mysqlcfg



Thread (5 messages)

« previous php.bugs (#209866) next »