Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66899 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21687 invoked from network); 3 Apr 2013 06:10:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Apr 2013 06:10:28 -0000 Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.177 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.217.177 mail-lb0-f177.google.com Received: from [209.85.217.177] ([209.85.217.177:60823] helo=mail-lb0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A8/38-07534-3D7CB515 for ; Wed, 03 Apr 2013 01:10:28 -0500 Received: by mail-lb0-f177.google.com with SMTP id r10so1203185lbi.8 for ; Tue, 02 Apr 2013 23:10:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:references:from:mime-version:in-reply-to:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=GQRe5KWMQmDCsK3dXE16suaWBDvLouCIwVGGaCU+izU=; b=LpZJ4Y4FOZR3Ny2eeiKkNVS+CsmU7U4tSYRhYZuOgKfQReJd+phMooHOabJ25mCQJW jgbX/YQNKKLSj7C4CoQU8weMcr4XvpM/36tvWRVu42tuEGAjpaslloIELDqCeC1a7aZf MXjZEwp0yhUZ7vSalZAnbNAE9OCrNeb4c+2Htu9PblFKR7dQ9VqgWeDrGBMS7tOmO1ee FnGeHn4u62acg7SuVuC3Idbia4dWnTdx9TtBv8yE2xYSxt++3Y2fFY3dSe0J/ZYfYF4j ObBOOGHBRqwjDSisMCxf6fLygNSiPDY78TLnyxYgOJjgFoROomZ4Ww+jqw+d2/8mTM/5 j/1A== X-Received: by 10.152.104.18 with SMTP id ga18mr183844lab.33.1364969424749; Tue, 02 Apr 2013 23:10:24 -0700 (PDT) References: Mime-Version: 1.0 (1.0) In-Reply-To: Date: Wed, 3 Apr 2013 14:10:21 +0800 Message-ID: <-8020185084467484976@unknownmsgid> To: Hannes Magnusson Cc: Laruence , PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Add a constant to reflect --with-curlwrappers From: laruence@gmail.com (Xinchen Hui) =E5=8F=91=E8=87=AA=E6=88=91=E7=9A=84 iPhone =E5=9C=A8 2013-4-3=EF=BC=8C13:56=EF=BC=8CHannes Magnusson =E5=86=99=E9=81=93=EF=BC=9A > Wait wait wait. You are introducing a constant that is going to be > available as of 5.4.15 to 5.4.2x and then removed (as it looks like we > are agreeing)? how could that be? This constant will in the final release of 5.5.0. Thanks > > People have been living without this constant forever now so people > have their workarounds in place and no need to complicate their code > to for the existence of this constant which is only available for few > bugfix releases anyway? > > -Hannes > > On Tue, Apr 2, 2013 at 7:19 PM, Laruence wrote: >> Added new constant CURL_WRAPPERS_ENABLE in (include 5.4) >> https://github.com/php/php-src/commit/d7f709a032a40cb475042b43db07a4698a= 2488b7 >> >> thanks >> >> >> On Mon, Apr 1, 2013 at 9:53 PM, Laruence wrote: >>> >>> >>> >>> >>> On Mon, Apr 1, 2013 at 7:18 AM, Hannes Magnusson >>> wrote: >>>> >>>> On Sun, Mar 31, 2013 at 6:25 AM, Laruence wrote: >>>>> Hey: >>>>> >>>>> there are some issues when people run some codes in a php which is >>>>> compiled with --with-curlwrappers, like #61336, or the recently test >>>>> script >>>>> for #64433 (failed when curl wrappers enabled). >>>>> >>>>> I know, that the curl wrapper should act the same as php http >>>>> wrapper, >>>>> but for now, we need to provide the ability to user, that they can wa= rn >>>>> if >>>>> they codes can not run with curl wrappers.. >>>>> >>>>> here are some really usages: >>>>> https://github.com/UnionOfRAD/lithium/issues/59 and >>>>> http://weizhifeng.net/wrong-with-curlwrappers.html >>>>> >>>>> I propose to add a constant : bool CURL_WRAPPERS_ENABLE >>>> >>>> The curl wrappers have always been a major pain, with plenty of bugs >>>> and we tend to forget to add context options there to match the >>>> standard wrapper on new feature. >>>> >>>> It has been marked as experimental since forever, and I think its time >>>> to face the failed experiment and remove it. >>> >>> >>> Hey: >>> >>> remove is also okey for me, but, I think it probably can only happen i= n >>> 5.6 >>> >>> before that, I think a flag to 5.4+ is a good choice :) >>> >>> thanks >>>> >>>> >>>> -Hannes >>> >>> >>> >>> >>> -- >>> Laruence Xinchen Hui >>> http://www.laruence.com/ >> >> >> >> >> -- >> Laruence Xinchen Hui >> http://www.laruence.com/