Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85859 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90307 invoked from network); 18 Apr 2015 10:46:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Apr 2015 10:46:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=irker@irker.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=irker@irker.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain irker.net from 209.85.212.182 cause and error) X-PHP-List-Original-Sender: irker@irker.net X-Host-Fingerprint: 209.85.212.182 mail-wi0-f182.google.com Received: from [209.85.212.182] ([209.85.212.182:36542] helo=mail-wi0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 51/D0-12030-21632355 for ; Sat, 18 Apr 2015 06:46:43 -0400 Received: by wizk4 with SMTP id k4so47914090wiz.1 for ; Sat, 18 Apr 2015 03:46:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=ub3SSl5iOHjlX/s4/Isq9KB/C9SeQfczHueV6AGdn2I=; b=Rt1ic2ZNI3i8Fj0tB701P1L06U1O9XMMv+6iKIzYDnERgIqC1F3sUknSz5mzAP4PMK H4qKoMvUvAVkvJb7Vy73Ud3aN4R+3xVciKH6yKgC6nPPvcWJ61YWmvrvPg8Hzb2wHAR9 NovLC6eBWJfjMRyvhgGBq4D24UgMXllCdYIoSGJuBA8YElJ4Vm89FhWEQhiJnlZRhhgd tnRXkDIW5hE4MeknvjZIyGRyLpTGar8r6RFvas8u4GjKd8TACAZd6rXlRpA7k6dKz0GT cbiD73s68lZBcAqOXdGmbbGjVSPY1wka2TrGXYiweizeFGwDE40dBJj/SwwQH4qxv0xK 7ejQ== X-Gm-Message-State: ALoCoQnj+zSXszG3bcSAGChqbQ7IGZF6dotxS6UqWpUuaiQxyBlLd7OKrrWHPlooOCjD2yfdXDKe X-Received: by 10.194.2.145 with SMTP id 17mr13445692wju.79.1429353998865; Sat, 18 Apr 2015 03:46:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.56.4 with HTTP; Sat, 18 Apr 2015 03:46:18 -0700 (PDT) Date: Sat, 18 Apr 2015 13:46:18 +0300 Message-ID: To: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7b3a896c5c6ff70513fd69b4 Subject: PR 1217: Add support for upload files from buffer string in curl extenion From: irker@irker.net (Alexander Moskalev) --047d7b3a896c5c6ff70513fd69b4 Content-Type: text/plain; charset=UTF-8 Hi all! I have few questions for my pull request: https://github.com/php/php-src/pull/1217 Short story: in some special cases we need to upload just created small file(s) by CURL. For example it's autogenerated image or pdf. And libcurl give for us this options: CURLFORM_BUFFER, CURLFORM_BUFFERPTR and CURLFORM_BUFFERLENGTH. My request about adding this options to curl php extension. For basement I used class CURLFile, but can't find solution to use same class, because this class require file name on disc parameter in constructor. So I created new class, now it called as CURLBufferFile. So, my questions are: 1) Can we still integrate this functionality to exists class CURLFile? 2) If no, what do you think about class name? a) CURLBufferFile b) CURLBuffer c) CURLFileBuffer d) ... other 3) What do you think about unserialization for this class? a) Do not accept it (becouse object can contain very big file) b) Accept Thanks! -- With regards, Alexander Moskalev irker@irker.net irker@php.net a.moskalev@corp.badoo.com --047d7b3a896c5c6ff70513fd69b4--