Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66986 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94150 invoked from network); 5 Apr 2013 14:15:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Apr 2013 14:15:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.45 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.212.45 mail-vb0-f45.google.com Received: from [209.85.212.45] ([209.85.212.45:52105] helo=mail-vb0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F4/81-20511-88CDE515 for ; Fri, 05 Apr 2013 09:15:37 -0500 Received: by mail-vb0-f45.google.com with SMTP id w15so2158411vbf.4 for ; Fri, 05 Apr 2013 07:15:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=lomXQMcIRYCetmN4lnlhw7CjNoi8kPRLxm1otNVQj9A=; b=Ke5O0rtDApoDfB2zE7GSHlf+Pki0c4PWvKI916Cltv1KOhl6x4aUHnSGgh9UeQeivB wZ4A2allDcHPZ5cOLDUAJOgOWcDAa0lrV2oNvDlYNSTogKFO+zaOe9HnWKtUcHIuRFYr eo9DzuPqIRNbwij0KQGrYvm4jtvA94y7O2mq3AD0RXFXfvIs5EYVpWRbpgUEMaVpcvNm dsFe0FGINId2DKhzpK8umjykpKq7oG5T3lWdH3s2JQ+TPSQpqqiRTf6/d35VY4AXOOu/ 7TNmOI0RxZjKmgOsSNiF84PeWpnSwOpq7UkzNeYWD25XmBaawLq9wyfdZyECz0zdWrcT I3sA== X-Received: by 10.52.171.193 with SMTP id aw1mr7092556vdc.49.1365171334351; Fri, 05 Apr 2013 07:15:34 -0700 (PDT) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.221.9.133 with HTTP; Fri, 5 Apr 2013 07:14:54 -0700 (PDT) In-Reply-To: <1365159067.2152.2691.camel@guybrush> References: <515BE6C2.7000801@sugarcrm.com> <515C9878.8060603@sugarcrm.com> <7848763017118166753@unknownmsgid> <1365159067.2152.2691.camel@guybrush> Date: Fri, 5 Apr 2013 16:14:54 +0200 X-Google-Sender-Auth: ozmQkbPIa7mQbtxybCGZ-x_Gf04 Message-ID: To: =?ISO-8859-1?Q?Johannes_Schl=FCter?= Cc: Pierre Joye , Hannes Magnusson , Pierrick Charron , Xinchen Hui , Leigh , Laruence , Stas Malyshev , Ferenc Kovacs , PHP Internals Content-Type: multipart/alternative; boundary=089e0158b6c471126c04d99db838 Subject: Re: [PHP-DEV] Add a constant to reflect --with-curlwrappers From: jpauli@php.net (Julien Pauli) --089e0158b6c471126c04d99db838 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Fri, Apr 5, 2013 at 12:51 PM, Johannes Schl=FCter wrote: > On Fri, 2013-04-05 at 08:01 +0200, Pierre Joye wrote: > > > 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. > > For open streams there should be no issue - they hold the pointer to > their respective implementation. > > The issue I see is that libraries might change that for whatever reasons > and not fix it up before passing control to some other library, thus > creating a hardly debugable mess. > I'm feeling like we wont be able to make it stable for 5.5 final. Why not extract the code to pecl, make it stable if possible, then use it as a pecl extension ? It could also be merged to ext/curl in some way , that could be another option. Julien.Pauli --089e0158b6c471126c04d99db838--