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 CURLFile for php developers?
пятница, 24 апреля 2015 г. пользователь Alexey Zakhlestin написал: > > > On 23 Apr 2015, at 14:26, Alexander Moskalev <ir...@irker.net > <javascript:;>> wrote: > > > > Because currently CURLFile have this constructor: > > public __construct <http://php.net/manual/en/curlfile.construct.php> ( > > string $filename [, string $mimetype [, string $postname ]] ) > > > > And we cannot replace this arguments to avoid BC break. > > (Do not top-post please.) > > Well… We can introduce another class, which would inherit from CURLFile. > Similar to how SplTempFileObject extends SplFileObject. > > > > А. > > -- With regards, Alexander Moskalev ir...@irker.net ir...@php.net a.moska...@corp.badoo.com