Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98872 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9316 invoked from network); 25 Apr 2017 04:00:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Apr 2017 04:00:31 -0000 Authentication-Results: pb1.pair.com header.from=michal.brzuchalski@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=michal.brzuchalski@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.172 as permitted sender) X-PHP-List-Original-Sender: michal.brzuchalski@gmail.com X-Host-Fingerprint: 209.85.128.172 mail-wr0-f172.google.com Received: from [209.85.128.172] ([209.85.128.172:34921] helo=mail-wr0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 11/C7-36901-CD9CEF85 for ; Tue, 25 Apr 2017 00:00:28 -0400 Received: by mail-wr0-f172.google.com with SMTP id z52so60242434wrc.2 for ; Mon, 24 Apr 2017 21:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=o5B30C4QkloqnN01lLluKmS2uVKKTcW+ysxmuyzNGrk=; b=Iv1sMDWWxTPOtONTr6IrTr0BPoM6P4ifF/KHq9ZENDJxAYvB5TGfBWcAjPArAcEQAo +PIjq9YPxOzJrMpSZU74OXkI7dKitDbkJM/eTDhMA7jpFtAuZx0GOFBP0wcIUftWMko4 w8nx+Db+NZoxI+QZhytkSWni9Bvn1KFyXrSlgxxJySwnLpmRBlZB+cXVAfJ/k84iEymo yqEJJTVrlKpK6HAhP6M5vKeJWE2xFpJN5LjyCIpqXAJgOw0QglCtUbN/080no/vyFY5N CKO7lAw9fXQcXrvq9wiK7FT+dmSdgpBnxPblFwxdF7gexGzGzzRY+cewqQ+2aXFuHGm9 daeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=o5B30C4QkloqnN01lLluKmS2uVKKTcW+ysxmuyzNGrk=; b=LHT8pUiACTxmrBSNpjfyDVohSf5R8vwPX+Wfn9bC3nFeAgW4cWgCwzDf+25I3QgQf3 93pLf9TlgV7n4FM2GWvwx2E9+OssA7jjCHi5PPxhh5+upJbBEOX+NHCqpJn0UJ+izidm xadVh4NK4qMIhubPSAOYootH+SketLGZkRQoaEYtlPBTcDo1UKLrFXJ8vhEAaeQH9nqg fl60RGMTlleBhaOml2S4OkTl6S+Rb8JBXtQnyEA0xFH6Bjw2YGI7U4Z//FSHiUwnwYKQ 4bJJumiNh9uOBKZmyvmVMYz7s4keohh395CJvTSyJgv7hfyP++jnuHmGfaHseoQtQpMa oq0A== X-Gm-Message-State: AN3rC/4gVJkTbplSNRY0aYGYQTe9N0j89fwvzgfLT6DZi4J5gryrYCT/ 0sK7TXl4xz48I+uOpTKAz0YYHyZEsw== X-Received: by 10.223.146.225 with SMTP id 88mr5211287wrn.51.1493092824519; Mon, 24 Apr 2017 21:00:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.136.253 with HTTP; Mon, 24 Apr 2017 21:00:23 -0700 (PDT) Received: by 10.223.136.253 with HTTP; Mon, 24 Apr 2017 21:00:23 -0700 (PDT) In-Reply-To: References: <82da5975-aaca-580c-50ae-0b034d14b124@fleshgrinder.com> <5280684d-193b-dda8-efc6-903422522d7a@gmail.com> Date: Tue, 25 Apr 2017 06:00:23 +0200 Message-ID: To: Sara Golemon Cc: "Colin O'Dell" , PHP Internals List , Stanislav Malyshev Content-Type: multipart/alternative; boundary=94eb2c0d9ff06c1a44054df5c302 Subject: Re: [PHP-DEV] [RFC] Enable strict_types checking for curl_setopt() From: michal.brzuchalski@gmail.com (=?UTF-8?Q?Micha=C5=82_Brzuchalski?=) --94eb2c0d9ff06c1a44054df5c302 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 25.04.2017 01:56 "Sara Golemon" napisa=C5=82(a): > > On Mon, Apr 24, 2017 at 4:09 PM, Stanislav Malyshev wrote: > > it's clearly > > business logic. Which I have no problem with, but it shouldn't be part > > of type system then. > > > We're certainly arguing semantics at this point. Let's agree that > type enforcement is a good thing (which you seemed to say in your > first response) and move on to how that's implemented. I agree with Stanislav. IMHO argument types are valueable when are reflective by reflection and curl_setopt has no valuable info by reflection and will never be. Curl implementation also uses resources cURL handle is used. Maybe it's time to refactor and provide objects with option setters with argument types? > > Why shouldn't we allow the same call-time decision making around > strict/weak enforcement to apply to "business logic" type enforcement > as it does to argument types? Surely consistency is a good thing as > well? > > -Sara > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --94eb2c0d9ff06c1a44054df5c302--