Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98904 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2721 invoked from network); 28 Apr 2017 23:30:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Apr 2017 23:30:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.128.174 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.128.174 mail-wr0-f174.google.com Received: from [209.85.128.174] ([209.85.128.174:32984] helo=mail-wr0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7C/53-01540-180D3095 for ; Fri, 28 Apr 2017 19:30:11 -0400 Received: by mail-wr0-f174.google.com with SMTP id w50so40834646wrc.0 for ; Fri, 28 Apr 2017 16:30:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=mGaTDDBFKrtCoYO3MvvUl8XPxUvCNUM3zK4o818/YC0=; b=rf/L9Al8Yq9f3qUvk+gHN6tSpDk8PX1W5/jfqqlKvrKJ6FHaRD+o1bAEMp4DlGhJjQ i5ugrL9Kx9VZlXw/XXSOX7a5mS4ekV5ILnB5fHIGFYxas3nWS1FpnEv3hQPsZbUt95iV XI2tMn0wYdoOp72PlyeJdgNJPXYRCEPZW/0miDbTpZyndAsq3FGi0k8Pg3X2XWmvniJp fHOmS+4qDXycMxZbQx186TliTElp82cV6pKhFskYSG/wjjSL3fPQuzraCgYls37jK1/U p18WfyFm3EcGmJhfNET8Q4QN6K5ep+kBVtbnjlqWgakvpZf1t0UEUE5VcMWP0BHGgvwL q+qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=mGaTDDBFKrtCoYO3MvvUl8XPxUvCNUM3zK4o818/YC0=; b=nGfRbcuy2wNtws37+hELaVZ5hB4/e7OJyD5HxeVu4iJgfdzIXgDnQA6ARvJVtnRYyC r8qrnskaWdZFYgaT1MZzg+NoHfUJ9CIXkSnPtwhVYgce+VZa7h86xW08JBzzjYrS+aaj pQ/EMyHiqEb/+NfWiWTYpve1plE5q2+9N5i88g4TmQfdXAibVB/Urf9lvvebsZN9iaUi o2jYNV9gd3bgx9NLCvQ2LyNDPomxeZHTn/TAo9DY08ASz8p33INQMB+NvInhYHFEmnnO lIUf5qyFyCghz1xqKrQzuEvzALH2RdD+jLH+G0ERamSOy/J8LR6+PAPOv4uxyqu1hKEj akww== X-Gm-Message-State: AN3rC/6MeF1w4QA+32yEDIrkYuisgewVOHQvZKnQAVTisFQgGYGH8Bny bfym3qsLpWXB7O1Re6VTZ7WoDcscPg== X-Received: by 10.223.173.74 with SMTP id p68mr8836006wrc.163.1493422207099; Fri, 28 Apr 2017 16:30:07 -0700 (PDT) MIME-Version: 1.0 Sender: php@golemon.com Received: by 10.223.157.38 with HTTP; Fri, 28 Apr 2017 16:30:06 -0700 (PDT) X-Originating-IP: [73.9.224.155] In-Reply-To: <5B258485-B7EE-4DCD-B93F-B036E9B6D4CC@gmail.com> References: <398456D8-170A-4629-B6FF-D64F6DDB9C9A@gmail.com> <5B258485-B7EE-4DCD-B93F-B036E9B6D4CC@gmail.com> Date: Fri, 28 Apr 2017 18:30:06 -0500 X-Google-Sender-Auth: rC7FGcIQVQgv-S4_5L7UmbJyWOk Message-ID: To: Rowan Collins Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Enable strict_types checking for curl_setopt() From: pollita@php.net (Sara Golemon) On Fri, Apr 28, 2017 at 6:05 PM, Rowan Collins wrote: >>I reject the idea of making a worse API for the sake of an artificial >>purity standard which has long since been violated elsewhere. > > Personally, I think if we were designing from scratch, having a > setHeaders method which took an array (and an associative > one at that) would seem a better API than a weird polymorphic > function with a manual page a mile long. > We can agree on this, and others in this thread have said as much as well. I've also mentioned that I've been poking at a new curl binding since last November. Funnily enough, it's a mix of a monolithic/polymorphic setOpt() method and where appropriate, setSomeSpecificThing() methods. When I get it to a stable point I'll toss it on github. -Sara