Re: [PHP-DEV] Re: Send files in CURL from string

2016-06-29 Thread Alexander Moskalev
Last try to highlight this thread -- With regards, Alexander Moskalev ir...@irker.net ir...@php.net a.moska...@corp.badoo.com

Re: [PHP-DEV] Re: Send files in CURL from string

2016-06-22 Thread Alexander Moskalev
Ok, thank you! Not sure if it the best solution, but it will work. So, 6) make possible to work with file pointer and stream URL in $filename option. positive: - no code duplicates - no BC brake negative: - misleading in property name: getFileName method, $name property etc. -- With regards, A

Re: [PHP-DEV] Re: Send files in CURL from string

2016-06-21 Thread Davey Shafik
On Tue, Jun 21, 2016 at 2:28 PM, Alexander Moskalev wrote: > Thank you! > > 2016-06-21 23:31 GMT+03:00 Davey Shafik : > >> you can use a memory stream > > I thought about something like that. But if we created memory stream > (php://memory ?), we have file pointer resource related to this stream.

Re: [PHP-DEV] Re: Send files in CURL from string

2016-06-21 Thread Alexander Moskalev
Thank you! 2016-06-21 23:31 GMT+03:00 Davey Shafik : > you can use a memory stream I thought about something like that. But if we created memory stream (php://memory ?), we have file pointer resource related to this stream. And we cannot read or write something in this stream without such file p

Re: [PHP-DEV] Re: Send files in CURL from string

2016-06-21 Thread Davey Shafik
On Tue, Jun 21, 2016 at 11:38 AM, Alexander Moskalev wrote: > Sorry for annoying mail, but it's really small and simple feature, which > can be implemented by few lines of curl options. But with API realisation > questions. > Please, help me to choose correct way, and I will create new pull-reque

[PHP-DEV] Re: Send files in CURL from string

2016-06-21 Thread Alexander Moskalev
Sorry for annoying mail, but it's really small and simple feature, which can be implemented by few lines of curl options. But with API realisation questions. Please, help me to choose correct way, and I will create new pull-request with code and tests.