Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104177 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 23634 invoked from network); 5 Feb 2019 15:42:27 -0000 Received: from unknown (HELO mail-vs1-f43.google.com) (209.85.217.43) by pb1.pair.com with SMTP; 5 Feb 2019 15:42:27 -0000 Received: by mail-vs1-f43.google.com with SMTP id p74so2019929vsc.0 for ; Tue, 05 Feb 2019 04:23: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=8vD2NaYQVd6ayCPMkqcvpNKeU5XUBkH6k4UGUwGv95Q=; b=BV3MV0N3xCsL9CpfOMuuoagix/pGfdRhu6FOSrMByPv2U425oXGbWEHGKFXTw26+nK srWOtjGJllUqVk+jlKz6P9bBCJP2b54OybVAakw82Cqx2LcFVxryjkIoEhzYxKlE8Wu2 dfMG6hAiqatgKW/+vCIWQZMgwncbwIr7K7EmUlmitdGlG6fautUul4SnyygbKFgsfzF1 GPk9p6V5VkqVHG7ZT7M0hoEPUyPHubaCQOmB7mKTts3V2ryfZGsaKO4MlLIxK0Xgj0xF KS4GeOHvYbvv5pl4t4zWeSPSMgNV4uzw3dO1yqSGebnWtBC/+BEJDhA2p+It6ZW8ctzl BqcQ== 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=8vD2NaYQVd6ayCPMkqcvpNKeU5XUBkH6k4UGUwGv95Q=; b=SH4By1nPbmAc77KHjz3MbW5Np7wauWgKJX/PnF5XN+9aBdWQ9WddTamu7TEDBqED/E dqAvQDMeAByD5cAWRAgKqh2ibwLTNJOVo17xoP1Eikh8Q11nMmABof7pxn2vuHJ6nmaY vb/x2pY8nvOYbU6QUh4n5gwULA81W85zNfyMZHPqNG/eFdkBeVrJGGUY7yyVf455MyKa 89SnJfl169QtVGMlbf2EgFP2rnabb/Snm2cuRe4hnFyx/Vq0I5YNB2NQy8grSeT1Mtgb T8Ca7OColUuZEEWxwcakRzjt9x5ZDpYe2ERuZjnAxfWii/QtDPaC8WM/y/nUCB/DGKri hwPg== X-Gm-Message-State: AHQUAuaXvJbD2VasjloaZIGVh9aSeNM/LKkAGbJvnpuFRKlLN1AP9+7a RMcXplyJIKeR4P5shSXlJinE/jvay+O0oH8twlo= X-Google-Smtp-Source: AHgI3IaxU++LkPZA69Xdmrhj30AJONxIelwg0+1WiwWe3nktN40t9juHlJ6rSoUH3EE1rr1DIbsv88DV4EDRdUQ9qFI= X-Received: by 2002:a67:6d42:: with SMTP id i63mr2026056vsc.158.1549369414709; Tue, 05 Feb 2019 04:23:34 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 5 Feb 2019 13:23:20 +0100 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000096f808058124ad3e" Subject: Re: [PHP-DEV] [RFC] Consistent type errors for internal functions From: george.banyard@gmail.com (Girgias) --00000000000096f808058124ad3e Content-Type: text/plain; charset="UTF-8" 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? Also does this means that there will be argument type hinting in core functions that could be found out via reflection? Best regards George P. Banyard --00000000000096f808058124ad3e--