Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98918 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78959 invoked from network); 30 Apr 2017 01:23:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2017 01:23:16 -0000 X-Host-Fingerprint: 95.148.67.65 unknown Received: from [95.148.67.65] ([95.148.67.65:14745] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CB/1C-01540-38C35095 for ; Sat, 29 Apr 2017 21:23:15 -0400 Message-ID: To: internals@lists.php.net References: Date: Sun, 30 Apr 2017 02:23:11 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 95.148.67.65 Subject: Re: [PHP-DEV] ZEND_ARG_TYPE_INFO usage in core? From: ajf@ajf.me (Andrea Faulds) Hey Nikita, Nikita Popov wrote: > The solution to these problems is simple: Stop checking arginfo types for > internal functions, just use them for reflection / inheritance checks, but > leave the actual type-checking to zpp. I agree that this is the way forward. An alternative would be splitting the responsibilities of argument type checking/conversion and PHP-value-to-C-value conversion. But the latter would be slower and isn't the path of least resistance. :) Thanks! -- Andrea Faulds https://ajf.me/