Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104175 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 8307 invoked from network); 5 Feb 2019 14:41:35 -0000 Received: from unknown (HELO mail-it1-f171.google.com) (209.85.166.171) by pb1.pair.com with SMTP; 5 Feb 2019 14:41:35 -0000 Received: by mail-it1-f171.google.com with SMTP id z20so7260027itc.3 for ; Tue, 05 Feb 2019 03:22:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=k9+psOjHd6ASjuWsrkMKurLjAry/0SfxzWGcnUiUM5A=; b=r0R/dTjO9pCv0GmaOOJl95e5S9Uwdxg+8aoClHThGV6a3Pbw01tO7jJqS/V1KRDl01 UmrGCfynDZ0sUvwXrgap1QJvG/av6AUX2G3Diqf4vvSsKJjXWRn002tDZWGIcOTTUhp/ jkHUMtyEjZwp2X0NTCdzbnNrUasZ8HDJq0WLbnexJ6jQSuRLQZm+1l02qt71z5qS74H/ Fx0+yI2hD6BZ31u8Gjn278BWX75JvWOoG1hI0lCZWjCNkS6bGjYSmbNa6rkpMjc2BKba M1NfolgJxcHOo63IdFSbSODVc5sSN6PKdyJPzP57wra/XiPJR/JjS83TyuaJrrEA+Js+ J3bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=k9+psOjHd6ASjuWsrkMKurLjAry/0SfxzWGcnUiUM5A=; b=nZVqzNArC8wYtcaGOKSoJbQNChAB8QwQR4F/a0S9L36kob6z5s8qTKlRkIjQaHbqYf D+jAKcuXsnJo/MXjqnZF/k0u1cPAdmGNIzfrA6kOFGA8FEWqmihS5p+VEsiHmL8wG4AZ JY0CU9tewrlrU3HOUXIiCaTnPYVcsqltNXnyGJDBT/01cYNHah/DSpwspx60zTQuF9GX Kxr10xmqZJvyrzHqPE7KuA6GSnxCBD0KkBH1IwbeaJA8hRKS6QNOC0HS5JaT6FsNQ2ij qmNsk8hfiksOZDquthl74rvTTQ8xavf4CFrWEusvDylTWUCoYd23a8X5tR8K6EWaMVdh E9rw== X-Gm-Message-State: AHQUAubLu/W7t2CYePbgCaP5nHfGI6plpHpjQKORtlElU7SLmF98xdGb jhD/WvuBH5qlugu1QXe7tGybsWjlcG5fzoyS0VBaJ3I7 X-Google-Smtp-Source: AHgI3IbyroB7rIfwWqZNfEs+Vhe/Y+CFstkOjq9Mud4066oXJTWwSdGQUy1J1K811n/ElGFAzRi0JcMkPuG/IaVopC8= X-Received: by 2002:a05:660c:74b:: with SMTP id a11mr2163975itl.27.1549365762095; Tue, 05 Feb 2019 03:22:42 -0800 (PST) MIME-Version: 1.0 Date: Tue, 5 Feb 2019 12:22:24 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000e08181058123d363" Subject: [RFC] Consistent type errors for internal functions From: nikita.ppv@gmail.com (Nikita Popov) --000000000000e08181058123d363 Content-Type: text/plain; charset="UTF-8" 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 --000000000000e08181058123d363--