Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66965 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39649 invoked from network); 5 Apr 2013 06:01:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Apr 2013 06:01:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.52 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.215.52 mail-la0-f52.google.com Received: from [209.85.215.52] ([209.85.215.52:38124] helo=mail-la0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 27/41-26067-1B86E515 for ; Fri, 05 Apr 2013 01:01:22 -0500 Received: by mail-la0-f52.google.com with SMTP id fs12so3163321lab.11 for ; Thu, 04 Apr 2013 23:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Ld8wrhgLgWGD2+XaJceP9pxKb5MdXjAwwsMo5fd4DEA=; b=H9tKza9lFG+cpYfhANIFvRG0TnPnsJ4PdPL3GN4e4d0J5y4jGXuv+epE7hWZPUIhLh sH7CKFIcJq3m1itqNXSxQWgyRKj0Gvf1+4moZi1a0CJmgeCkqF/6HmafQNkc2xkXDRvc fS58LMX0qRjh/9Os/NJerhEapoE6R2wb17BiZjQWOSXcaAuER9nkELaZ53dyrQZhPIfN e5cQID2zhR0b4EZexh7tgImGI9i65TysA8rcpSaDEqtIPaVXlWUABzKKle/xQXHm+iPM SSrfp0XHWuRy4Iu2g4Vpsqyyi/li9m3fXVd2qPRIAlC4QhhNwFYF0sBQcf7XUThWIv62 uvrw== MIME-Version: 1.0 X-Received: by 10.112.9.10 with SMTP id v10mr5286806lba.47.1365141678256; Thu, 04 Apr 2013 23:01:18 -0700 (PDT) Received: by 10.112.163.40 with HTTP; Thu, 4 Apr 2013 23:01:18 -0700 (PDT) In-Reply-To: References: <515BE6C2.7000801@sugarcrm.com> <515C9878.8060603@sugarcrm.com> <7848763017118166753@unknownmsgid> Date: Fri, 5 Apr 2013 08:01:18 +0200 Message-ID: To: Hannes Magnusson Cc: Pierrick Charron , Julien Pauli , Xinchen Hui , Leigh , Laruence , Stas Malyshev , Ferenc Kovacs , PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Add a constant to reflect --with-curlwrappers From: pierre.php@gmail.com (Pierre Joye) On Thu, Apr 4, 2013 at 9:52 PM, Hannes Magnusson wrote: > Its not only about maintaining it. > This experiment failed a long time ago. Overwriting the core streams > has proven itself to be the wrong way. I cannot agree more. > If there was a way for userspace to say "overload with curl" then thats fine. > We already have a procedure for this: > > stream_wrapper_unregister("http"); > stream_wrapper_register("http", "CurlStreamWrapper"); > and then stream_wrapper_restore("http") to go back to the core streams. > I wonder what one will do with open streams during the switches. That can't go well. cheers, -- Pierre @pierrejoye