Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98863 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80060 invoked from network); 24 Apr 2017 20:20:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Apr 2017 20:20:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.179 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.223.179 mail-io0-f179.google.com Received: from [209.85.223.179] ([209.85.223.179:33505] helo=mail-io0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 64/24-36901-FFD5EF85 for ; Mon, 24 Apr 2017 16:20:15 -0400 Received: by mail-io0-f179.google.com with SMTP id k87so203653388ioi.0 for ; Mon, 24 Apr 2017 13:20:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=YYhG3StED/GcTWIBQjkiF0iodVCYogol9XeXGBmB7CE=; b=ewLn9hptFhnAphTdQ7old08X9MKpHx7Ua3z6Nvt/1h+zWMc2A64KPb27jauOhCmPvc 0oewzowjsDztV6FYDKLuy/+IYb2wmOI/OkIfCx4hLF5gUm5rWXpJ0xDcvtHzKUZqNH5r JQN/T/fu7NhXug7H/DUc5hzdqSgC3Hb2sDavFAshV1C4fIy8P+BKNucmiDFmqIda8HpP UM3Gm7MoyZx20vW6dBauDgTsET+qyQLF5Slb6q4126q2/CjnLgg5hge6R4s0XRUrvsbs js8QgJaKQnNMgoH+HB5lOsdHDXOYfdRqw4Z9m/MuK8Sapqy2wW0Kant5odmjQ45AzvWi waxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=YYhG3StED/GcTWIBQjkiF0iodVCYogol9XeXGBmB7CE=; b=g0gQPZil9EyGOa2a8a7uKUy1lI8ADhXceVjXQmdJibymJ9FXfQYKolZqzryCo9TGb2 jupFy6Eai4zUHCK2fSCS3maeKAC/KXyahCuEkxkK7vbQgBUZAQqueVfpZG1Df+3Zbk7N UlQKc8Q6ypUhcdQSZXoehEF6HJz2qBVWPCHDeuHRINL6nL8AigSaqJRCxGoLUaNxKV0S HwfPk1Brf4Ltto17qqeTF5YXiNGUyQFbQra/34nZy02hDqW+TS69lv44behc/QVbCldK 4F5XS56L8X4Isd3SQlPdfDLbaGeR8e8kZQstcILnGMhkAShdS1m8UOYmvvJseVevsH02 UYaQ== X-Gm-Message-State: AN3rC/6wDUxMLAy0LjeJSxA8DKzq6Vp38lk3oJGHGryEbSAAQ8vFwvbs nxHhAN8u4+cR33PYnAE= X-Received: by 10.107.186.134 with SMTP id k128mr8354952iof.83.1493065211950; Mon, 24 Apr 2017 13:20:11 -0700 (PDT) Received: from Stas-Air-4469.local (108-233-206-104.lightspeed.sntcca.sbcglobal.net. [108.233.206.104]) by smtp.gmail.com with ESMTPSA id c95sm603913itd.7.2017.04.24.13.20.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Apr 2017 13:20:11 -0700 (PDT) To: Colin O'Dell , PHP Internals References: Message-ID: Date: Mon, 24 Apr 2017 13:20:10 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Enable strict_types checking for curl_setopt() From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Because each option expects the value to be a specific type, it makes sense > to enforce these types in strict type checking mode. I'd therefore like to > propose that we introduce strict type enforcement inside curl_setopt() when > "declare(strict_types=1);" is being used. While it may make sense to check types per-option, that's not exactly what scalar types are supposed to do - this is not argument typing, this is internal function business logic, and I am not sure confusing the two is really that good an idea. -- Stas Malyshev smalyshev@gmail.com