Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66972 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63050 invoked from network); 5 Apr 2013 10:49:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Apr 2013 10:49:57 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 config.schlueters.de Received: from [217.114.211.66] ([217.114.211.66:37550] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/D0-57919-35CAE515 for ; Fri, 05 Apr 2013 05:49:56 -0500 Received: from [192.168.2.20] (ppp-93-104-31-244.dynamic.mnet-online.de [93.104.31.244]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id 633BB65C0B; Fri, 5 Apr 2013 12:49:51 +0200 (CEST) To: Pierre Joye Cc: Hannes Magnusson , Pierrick Charron , Julien Pauli , Xinchen Hui , Leigh , Laruence , Stas Malyshev , Ferenc Kovacs , PHP Internals In-Reply-To: References: <515BE6C2.7000801@sugarcrm.com> <515C9878.8060603@sugarcrm.com> <7848763017118166753@unknownmsgid> Content-Type: text/plain; charset="UTF-8" Date: Fri, 05 Apr 2013 12:51:07 +0200 Message-ID: <1365159067.2152.2691.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Add a constant to reflect --with-curlwrappers From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) 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. johannes