Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104178 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 40144 invoked from network); 5 Feb 2019 16:48:27 -0000 Received: from unknown (HELO mail-it1-f195.google.com) (209.85.166.195) by pb1.pair.com with SMTP; 5 Feb 2019 16:48:27 -0000 Received: by mail-it1-f195.google.com with SMTP id m8so14645038itk.0 for ; Tue, 05 Feb 2019 05:29:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=N2oJwcH8M0nfTCSPbZyKp8pbCEdcCSaSHrpiEADV8Y0=; b=gSx2L3CDUwgF2S//H7ojQmNIkHbhASyUx/sBefHq8gazehbh9AihatfjD1Hwntdtc6 XYnQ+s6qjlGS4Bgect8hunKO9QPOAJTnjbE6aWnyOTccHBle87Jag60SPt72WE99fCjU 9zSa09C2JUKddLZLdRNo35kYudv3BW6014uvZVhR1fdMa+wIf9JPHoFpVjRTly59J8tn iBtqQHWgz+Rq81DSQT6DCe+bWBaqyo+ZUNMsUiyo2Y5DBfnINsUchIqYE1oSF759Hn0L aoeS9o0QXs7mhUvtM0yEvVG61CKKCFPnYxUaHeHRPIsuhMxeanKZoxaj5pRchDx6RBi3 opTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=N2oJwcH8M0nfTCSPbZyKp8pbCEdcCSaSHrpiEADV8Y0=; b=evVXiVo4IYdcYwNB14XfH60kaSe3Vm8/qduX/7vSxACYKKAik8Cvqpw3V/5dk9UDaz i5rStN5lO1+VsS10wyewa7OH3/5ahlujskx7SvfHcGWnVw7/NMtV24ETQWDqI6rvEEwB N7z9n8ilLy6ikxm9VPYtwGg0PEPq0OSYK9gx4zp47RHlNaTjCTbRkpN30iI0WEaA0J46 RdkFOuVF0uDRQCuvqh5dVJF1Ya2lvfavCLwmrIV7pheP96OLU+Z0Gf2X3b8X6k2sNo6t ueQlXkRQTPVvJrTo3u4IYMOYoUqQml8mkcjn2Cmd4l2RWnfgGQjp0RicWVkaHxoOGCXP CvOg== X-Gm-Message-State: AHQUAuZKeVLXoJBawbL6Ij+grYyeOvPo9Q5PHCj1WaGMRgUOq6VJMDb3 gsF1ZO8yLgcyDaE0WYLSf20YrSTbY2Xobvb+I2I= X-Google-Smtp-Source: AHgI3IYkYH+qQX8K8GTvbHPtO4tMCutuglTdP7w8ZnFmWVeSorki0+jZQK3JmNXcqbnxYLto3fP22JriQAVBIlruGeU= X-Received: by 2002:a5e:c906:: with SMTP id z6mr2516464iol.47.1549373375368; Tue, 05 Feb 2019 05:29:35 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 5 Feb 2019 14:29:17 +0100 Message-ID: To: Girgias Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000a9d8170581259934" Subject: Re: [PHP-DEV] [RFC] Consistent type errors for internal functions From: nikita.ppv@gmail.com (Nikita Popov) --000000000000a9d8170581259934 Content-Type: text/plain; charset="UTF-8" On Tue, Feb 5, 2019 at 1:23 PM Girgias wrote: > On Tue, 5 Feb 2019 at 12:22, Nikita Popov wrote: > >> Hi internals, >> >> I'd like to bring forward the following proposal for PHP 8, which will >> make >> (zpp) parameter parsing failures always result in a TypeError (rather than >> generating a warning+null, depending on circumstances): >> >> https://wiki.php.net/rfc/consistent_type_errors >> >> The goal here is to remove one of the inconsistencies between user-defined >> and internal functions, and to put us in a position where we can actually >> start specifying type information in arginfo without fear of breaking >> things. >> >> Regards, >> Nikita >> > > I'm all for it but what is the scope of the RFC? > Is it all core functions, bundled extension functions, or all extension > functions? > It affects all internal functions using the zpp APIs, which covers pretty much all core functions, bundled extension functions and third-party extension functions. > Also does this means that there will be argument type hinting in core > functions that > could be found out via reflection? > Not as a direct result of the proposal, but the RFC does remove the big blocker for it. Once it lands we need one more change (don't actually verify arginfo types for internal functions to avoid double type checking), and then we can start adding the necessary type information. That will also take some work, as we have many functions, but it's something everyone can help with. Nikita --000000000000a9d8170581259934--