Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93456 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5758 invoked from network); 23 May 2016 19:59:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2016 19:59:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=markus@fischer.name; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=markus@fischer.name; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fischer.name from 62.179.121.158 cause and error) X-PHP-List-Original-Sender: markus@fischer.name X-Host-Fingerprint: 62.179.121.158 vie01a-dmta-pe02-2.mx.upcmail.net Received: from [62.179.121.158] ([62.179.121.158:61965] helo=vie01a-dmta-pe02-2.mx.upcmail.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/7C-14293-51163475 for ; Mon, 23 May 2016 15:59:18 -0400 Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe02.mx.upcmail.net with esmtp (Exim 4.87) (envelope-from ) id 1b4w0P-0005F4-Gj for internals@lists.php.net; Mon, 23 May 2016 21:59:13 +0200 Received: from mail02.home ([213.47.8.56]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id xvzC1s00B1CY7x901vzDy3; Mon, 23 May 2016 21:59:13 +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 1b4w0N-0001C2-D6 for internals@lists.php.net; Mon, 23 May 2016 21:59:12 +0200 To: internals@lists.php.net References: Message-ID: <02cd6780-5113-3c37-2ae7-75f9a8465b63@fischer.name> Date: Mon, 23 May 2016 21:59:10 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit 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: Hello Nikita, On 23.05.16 21:27, Nikita Nefedov wrote: > When you pass an `int` to a `string` type parameter in weak mode > it's being coerced to the needed type (not just directly passed). > > This is quite complex, because you'd need to copy zend_function > and all its members (without changing the original zend_function). > > I would love to support it but all in all it comes down to > implementation here for me, so I'd rather do it in a separate > RFC. [...] 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] [Vote] Callable types (now: Callable prototypes) From: markus@fischer.name (Markus Fischer) Hello Nikita, On 23.05.16 21:27, Nikita Nefedov wrote: > When you pass an `int` to a `string` type parameter in weak mode > it's being coerced to the needed type (not just directly passed). > > This is quite complex, because you'd need to copy zend_function > and all its members (without changing the original zend_function). > > I would love to support it but all in all it comes down to > implementation here for me, so I'd rather do it in a separate > RFC. I like the RFC, however I do not like this behavior. This would behave differently then how current weak/strict mode works. I was never a fan of the weak mode to begin with, but now introducing something which deals in the area of argument passing and not behaving to what a 2/3 majority agreed is IMHO a no-go. The current RFC does not even mention that. Maybe it's not feasible anyway, but in any case I'm missing input/discussion in this area. - Markus