Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98920 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20828 invoked from network); 30 Apr 2017 18:56:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2017 18:56:06 -0000 Authentication-Results: pb1.pair.com header.from=markus@fischer.name; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=markus@fischer.name; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fischer.name from 62.179.121.155 cause and error) X-PHP-List-Original-Sender: markus@fischer.name X-Host-Fingerprint: 62.179.121.155 vie01a-dmta-pe01-2.mx.upcmail.net Received: from [62.179.121.155] ([62.179.121.155:56672] helo=vie01a-dmta-pe01-2.mx.upcmail.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A8/FE-01540-24336095 for ; Sun, 30 Apr 2017 14:56:04 -0400 Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe01.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1d4u0l-0005yi-LG for internals@lists.php.net; Sun, 30 Apr 2017 20:55:59 +0200 Received: from mail02.home ([213.47.8.56]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id Eivx1v0091CY7x901ivyjn; Sun, 30 Apr 2017 20:55:58 +0200 X-SourceIP: 213.47.8.56 Received: from mail02.home ([192.168.1.14] helo=[IPv6:::1]) by mail02.home with esmtp (Exim 4.72) (envelope-from ) id 1d4u0h-0007kQ-Lj for internals@lists.php.net; Sun, 30 Apr 2017 20:55:56 +0200 To: internals@lists.php.net References: <398456D8-170A-4629-B6FF-D64F6DDB9C9A@gmail.com> <5B258485-B7EE-4DCD-B93F-B036E9B6D4CC@gmail.com> <8F7D0233-DB1A-4617-8E92-C1719D4D385D@gmail.com> Message-ID: Date: Sun, 30 Apr 2017 20:56:03 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam_report: Spam detection software, running on the system "scanner01.home", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, On 29.04.17 17:53, Sara Golemon wrote: > 1. If the parameter isn't reflectable, then it shouldn't be subject to > enforcement. > This argument holds no water because internal functions can only > reflect array or object type hints, yet we enforce other types > routinely. [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Subject: Re: [PHP-DEV] [RFC] Enable strict_types checking for curl_setopt() From: markus@fischer.name (Markus Fischer) Hi, On 29.04.17 17:53, Sara Golemon wrote: > 1. If the parameter isn't reflectable, then it shouldn't be subject to > enforcement. > This argument holds no water because internal functions can only > reflect array or object type hints, yet we enforce other types > routinely. I selected unfortunate words and wanted to mention reflection as an example (in retrospect a bad and confusing one), but would I really meant was the "user readable / visible" contract of the function definition, as in: "you look at it and know what to expect what it accepts". I've read through the thread and see your arguments but, to me, the fact that this is "nested hidden" in the data structure passed to the function still doesn't want me to have this dependent on the strict types. I feel that strict types is misused here. regards, - Markus