Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66969 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55252 invoked from network); 5 Apr 2013 09:20:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Apr 2013 09:20:09 -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.220.181 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.220.181 mail-vc0-f181.google.com Received: from [209.85.220.181] ([209.85.220.181:61461] helo=mail-vc0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 56/41-46889-8479E515 for ; Fri, 05 Apr 2013 04:20:08 -0500 Received: by mail-vc0-f181.google.com with SMTP id hv10so3078715vcb.12 for ; Fri, 05 Apr 2013 02:20:05 -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=7J8Gz4RKsnp5STRaCQyzTcGQW0vAugYs5bgBpMyc+qY=; b=lg0Qq3WaRQC4/jBa+U7WTzZvX/uY71zSbRaGMdFvTX3FogrVhrTGAOJiJ0xOIZbBjN Rm+yyI42H/F3TS42rkCeJ52R0JG643x8GL+l9yXIF0iETG62Xe7bjtc/UnB+s7hoZ74P 7nKVi3dsulnD5reBI9gK8Ha/taeLSbi/liO7YxZz+lJhxSqS8BnfJvSpHNLC/bA6OGrZ eaOC+HlTiZNK/JbjecmqTTXFsYSEdcQiqYWn6BqxMokFDe7lG/DDAbNRID1VhFwBvTnW N1SNjGYh2l5FIyH9XRTfff3pg1HNyGiJeKx+K6bep+4A2tF7sMRTxF4L0AY/92t1Nc6h nEKg== X-Received: by 10.220.71.200 with SMTP id i8mr7398434vcj.44.1365153605555; Fri, 05 Apr 2013 02:20:05 -0700 (PDT) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.221.9.133 with HTTP; Fri, 5 Apr 2013 02:19:25 -0700 (PDT) In-Reply-To: References: <515BE6C2.7000801@sugarcrm.com> <515C9878.8060603@sugarcrm.com> <7848763017118166753@unknownmsgid> Date: Fri, 5 Apr 2013 11:19:25 +0200 X-Google-Sender-Auth: _jdM2_9AMlLpmBCBGxrN8OONt6I Message-ID: To: Pierre Joye Cc: Hannes Magnusson , Pierrick Charron , Xinchen Hui , Leigh , Laruence , Stas Malyshev , Ferenc Kovacs , PHP Internals Content-Type: multipart/alternative; boundary=001a11c23448b91de004d99997bd Subject: Re: [PHP-DEV] Add a constant to reflect --with-curlwrappers From: jpauli@php.net (Julien Pauli) --001a11c23448b91de004d99997bd Content-Type: text/plain; charset=ISO-8859-1 On Fri, Apr 5, 2013 at 8:01 AM, Pierre Joye wrote: > 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. > Hey, that's true, we may meet strange behavior. I would say, why not create a new wrapper protocol, aka "curl://". I know it is more ugly than "http://" , but "curl://" solves the problem doesn't it ? I wonder how we could use curl other protocols than http using curl:// though :p Julien.P --001a11c23448b91de004d99997bd--