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
, 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-21 Thread Alexander Moskalev
tents($fp); //<- this will work Or you mean something else? -- With regards, Alexander Moskalev ir...@irker.net ir...@php.net a.moska...@corp.badoo.com

[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.

[PHP-DEV] Send files in CURL from string

2016-06-19 Thread Alexander Moskalev
, and please help me to finish this small feature. -- With regards, Alexander Moskalev ir...@irker.net ir...@php.net a.moska...@corp.badoo.com

Re: [PHP-DEV] PR 1217: Add support for upload files from buffer string in curl extenion

2015-05-16 Thread Alexander Moskalev
Hi! PR: https://github.com/php/php-src/pull/1283 -- With regards, Alexander Moskalev ir...@irker.net ir...@php.net a.moska...@corp.badoo.com

Re: [PHP-DEV] PR 1217: Add support for upload files from buffer string in curl extenion

2015-05-08 Thread Alexander Moskalev
ntain not a string - we report error 6) If file name cast to false - we use buffer Please, check my commit and later I will create new pull request. Thank you! -- With regards, Alexander Moskalev ir...@irker.net ir...@php.net a.moska...@corp.badoo.com

[PHP-DEV] Re: PR 1217: Add support for upload files from buffer string in curl extenion

2015-04-24 Thread Alexander Moskalev
2015-04-24 11:10 GMT+03:00 Alexander Moskalev : > I think It same as my current pull-request - another class with duplicate > functionality and duplicate code. We save only few strings from base class > with $postname field. > What benefits we will add using inheriting from CURL

[PHP-DEV] Re: PR 1217: Add support for upload files from buffer string in curl extenion

2015-04-24 Thread Alexander Moskalev
Zakhlestin написал: > > > On 23 Apr 2015, at 14:26, Alexander Moskalev > wrote: > > > > Because currently CURLFile have this constructor: > > public __construct <http://php.net/manual/en/curlfile.construct.php> ( > > string $filename [, string $mimetype [, s

Re: [PHP-DEV] PR 1217: Add support for upload files from buffer string in curl extenion

2015-04-23 Thread Alexander Moskalev
; > On 22 Apr 2015 10:27, "Alexander Moskalev" wrote: > > > > Thanks to all for feedback! > > > > Let's try to integrate new feature to old class. > > We have constructor in CURLFile with one required parameter: $filename . > > To avoid BC b

Re: [PHP-DEV] PR 1217: Add support for upload files from buffer string in curl extenion

2015-04-22 Thread Alexander Moskalev
Thanks to all for feedback! Let's try to integrate new feature to old class. We have constructor in CURLFile with one required parameter: $filename . To avoid BC break we cannot replace this parameter. So I suggest to do it optional and add setBuffer() method. So we can create CURLFile with empt

[PHP-DEV] PR 1217: Add support for upload files from buffer string in curl extenion

2015-04-18 Thread Alexander Moskalev
use object can contain very big file) b) Accept Thanks! -- With regards, Alexander Moskalev ir...@irker.net ir...@php.net a.moska...@corp.badoo.com

Re: [PHP-DEV] [RFC] Scalar Type Hints

2015-01-01 Thread Alexander Moskalev
t $a, (int) $b) { > // $a will be strict > // $b will be type casted > } > > This way we can actually choose when to cast and when to be strict and both > features could be voted independently without affect each other possible > future adoptions. >