Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98878 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54151 invoked from network); 25 Apr 2017 16:37:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Apr 2017 16:37:47 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.169 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.128.169 mail-wr0-f169.google.com Received: from [209.85.128.169] ([209.85.128.169:35221] helo=mail-wr0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/1C-36901-A5B7FF85 for ; Tue, 25 Apr 2017 12:37:46 -0400 Received: by mail-wr0-f169.google.com with SMTP id z52so70685587wrc.2 for ; Tue, 25 Apr 2017 09:37:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:from:message-id; bh=vhJJx0Z+1bf1sDkxBscoEUFurHLoYwDqRcfsh5eZ5D0=; b=NBjwYx9YprVYJyCrcY4eZOdBkABZ9zkqc/AC+Xq7d4/YXX93P/kiw8wfylYQaKAROA AqUQzOhwjyrk5sdfcD2zkWikE/lk4s4CeOdkCU7HarwobgLPpl87+3flji4Nass0BLjP Jvxl7uvHdTgNyrUWT+U7buAq4s1SUITwRf6ue4zgT/iZX0yjpUV/MRLlWKhUQMbljlFh e36DryAra3+g9Wo2aoBasvYfOnPAL1httooHs2YpEcoVUnM+0Hk7/kIrZxuTnHFixf1g ILEXd6k2lKA26MdgOP0bG8NLyeMKCk7hPhvJp2jSqMOBGdlmwUACOvgE2mnygL930VWJ FoRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:from:message-id; bh=vhJJx0Z+1bf1sDkxBscoEUFurHLoYwDqRcfsh5eZ5D0=; b=U5529ex89y5FUTHK0Zc3BKd7HEoHxwQu1l0hDrd2McoAHRlt+72rBmaJa2/CApAcqX BWvsljZTzIkU9KYi+Rv1/j1bZuA15DRjc34oA7XlSG4cxw7aNLEEsgHTFQXP/B3YjERt rlrBI0k7Ph5bUFE2qYhTvbTWkEpeyKJVkb0yVjGt9uogn8+CKsplacP1/Ym8wWUqVI6y k15kpCM9gONqHx2Bdu57tGxGoydmS/K63RyXQRw4b+ZO9f7UAyAmgok0hbaAxVLtIL3A Er4OTdoQzRHTHd+zD+rWorNSvfaW2q4BMBfQ4Tp5yhWLMcStZvh2eBxDu1CRev0WZoiV e6Xw== X-Gm-Message-State: AN3rC/5gJ3IJ5Z135IIJNZLhSJ3Lxcn/EApID1RxvK5Jel5S6IMZ9Mos MLBPY2XzHclgUT2yVVQ= X-Received: by 10.223.147.97 with SMTP id 88mr7331156wro.134.1493138263229; Tue, 25 Apr 2017 09:37:43 -0700 (PDT) Received: from [10.60.31.186] (188.29.164.94.threembb.co.uk. [188.29.164.94]) by smtp.gmail.com with ESMTPSA id 21sm26799952wrb.55.2017.04.25.09.37.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Apr 2017 09:37:42 -0700 (PDT) Date: Tue, 25 Apr 2017 17:37:41 +0100 User-Agent: K-9 Mail for Android In-Reply-To: References: <82da5975-aaca-580c-50ae-0b034d14b124@fleshgrinder.com> <5280684d-193b-dda8-efc6-903422522d7a@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: internals@lists.php.net Message-ID: <3339D8A8-7046-41CF-902D-3E2B324F5DBE@gmail.com> Subject: Re: [PHP-DEV] [RFC] Enable strict_types checking for curl_setopt() From: rowan.collins@gmail.com (Rowan Collins) On 25 April 2017 16:56:57 BST, Sara Golemon wrote: >> Maybe it's time to refactor and provide objects with option setters >> with argument types? >> >I do agree there=2E I've got a WiP "cURLi" extention in my homedir that >I've been poking at since ZendCon 2016=2E I suppose if we don't put >type checking in curl_setopt() then that'll just push users who care >about type safety towards cURLi=2E :D Oh, lordy, yes please! The curl API is absolutely horrible, and just cryin= g out for a more sane wrapper to be built into the language, rather than ev= eryone writing their own messy classes=2E Please can we also set some sane defaults (e=2Eg=2E CURLOPT_RETURNTRANSFER= ) and a small amount of extra logic (e=2Eg=2E capturing return headers) so = that using it doesn't require a dozen lines of boilerplate to be useful? Thanks, --=20 Rowan Collins [IMSoP]