Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98877 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51360 invoked from network); 25 Apr 2017 15:57:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Apr 2017 15:57:02 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 74.125.82.48 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 74.125.82.48 mail-wm0-f48.google.com Received: from [74.125.82.48] ([74.125.82.48:35229] helo=mail-wm0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D3/CB-36901-CC17FF85 for ; Tue, 25 Apr 2017 11:57:01 -0400 Received: by mail-wm0-f48.google.com with SMTP id w64so26909160wma.0 for ; Tue, 25 Apr 2017 08:57:00 -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:content-transfer-encoding; bh=mvPleevXFhbmDBkK0BLtc4STWaFodGmGiGefolEZ5kg=; b=YZeVUgp3t3s6DiHH2nA0tmOveOgn49urZOB0EDVc4lKRU40e8hLr34u7p3dptJlW4Z 6MA/y9x+IiOfQvff3WUak3zi+6UnKIifEG92f5JcTI24ogBXKn7abAofCdu2fYWftefC +WKvLmqvTOd/2q0f7hky43a5O05myDJXmaD6Jb6qoIYy3Pp4ZFBhLvFCaeGU9eSLFq5D CaZ3yKddNopyRMsqpekl5r0ShQV8G6PNv7VftJQ1J/EX1U38NRLJrEhlS3tfRimsHYsW BVxBDmUg5EJ+VTL7Fi5kKvQiFPNo/PJEx94/vXlWYIO95cIm5JayrDdaxK6diWHZ3oPj CM4w== 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:content-transfer-encoding; bh=mvPleevXFhbmDBkK0BLtc4STWaFodGmGiGefolEZ5kg=; b=thiHMTOKj79eZVXSmpIaAhQgeD/RhTHXMOF9e62cGSAgTBGhZopw4iP8h7V0hKjK6R /THWHE143YyAOXD9gB6nUN30IMg8cR3EcQIYSFLSbp+PH5AKK+/+dpd+xDh3zc+eCxCn LioP4MU+/keS5B5lzGYC6TTjhI2W7qnxwW4adpvWKs7xC5xQxhG/SZ+aZtuDhJrSH8qA /dVLnOth+XCGVXc4Atp6jly5h3pxTtnwMYRMgdAYQLSREXki/LGmZxRcTxgtlpllmg/p oSfyoS0h0gdEhHMBzhZh3uvIMdDdz/TJ8KUswDTYqUdjMcZ8RWEnSiW928s6lMt+Yjf4 aRUw== X-Gm-Message-State: AN3rC/4zMSWkO2nMbWSv0G0tVFuJDV8LEzotGaI7OcHYeNYsf6b3AfK+ 5LmOTAMhRxmOCkX6Cja1fos60m0Jhg== X-Received: by 10.28.208.74 with SMTP id h71mr12949297wmg.36.1493135817857; Tue, 25 Apr 2017 08:56:57 -0700 (PDT) MIME-Version: 1.0 Sender: php@golemon.com Received: by 10.223.157.12 with HTTP; Tue, 25 Apr 2017 08:56:57 -0700 (PDT) X-Originating-IP: [50.197.186.161] In-Reply-To: References: <82da5975-aaca-580c-50ae-0b034d14b124@fleshgrinder.com> <5280684d-193b-dda8-efc6-903422522d7a@gmail.com> Date: Tue, 25 Apr 2017 08:56:57 -0700 X-Google-Sender-Auth: 4h6_fZGG10YFYQZUtqvScXeIRBU Message-ID: To: =?UTF-8?Q?Micha=C5=82_Brzuchalski?= Cc: "Colin O'Dell" , PHP Internals List , Stanislav Malyshev Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Enable strict_types checking for curl_setopt() From: pollita@php.net (Sara Golemon) On Mon, Apr 24, 2017 at 9:00 PM, Micha=C5=82 Brzuchalski wrote: > I agree with Stanislav. IMHO argument types are valueable when are > reflective by reflection and curl_setopt has no valuable info by reflecti= on > and will never be. Curl implementation also uses resources cURL handle is > used. > Literally zero internal functions have argument type reflection (beyond class and array types). curl_setopt() is not and would not be any different in this regard. https://3v4l.org/2BtPW > Maybe it's time to refactor and provide objects with option setters > with argument types? > I do agree there. I've got a WiP "cURLi" extention in my homedir that I've been poking at since ZendCon 2016. 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. :D -Sara