Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104449 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 42922 invoked from network); 16 Feb 2019 21:45:03 -0000 Received: from unknown (HELO mail-lf1-f42.google.com) (209.85.167.42) by pb1.pair.com with SMTP; 16 Feb 2019 21:45:03 -0000 Received: by mail-lf1-f42.google.com with SMTP id t14so9507174lfk.7 for ; Sat, 16 Feb 2019 10:29:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PbgPIk/2XBhLmJmvijXy/O7PJI2zXmteRij6FlnpexA=; b=cZ6XmG65e7ZIt8Ak3wZMDoW+LIo53/UAMLFYCj/5MZevwpo2y3Eup2QmhfI13ib/m2 Lgfzav2XxvAnXjvAOr5UnT0SCJHEH2Y6XD9V4P4usLyRsyLdYbppj/QOggpaAuunJNxs GmIFtXl2kTcfJpP7TqWurf59uZJM9xX3luTnc6jT62vZevLklLFnzHWwack42ZTMdd9M 1YrjOizEqLyI8AtyD80VX1hVzb2gOXYqUb5b288PkSS7c/I++KYuCnHtkaQDgQWJjqOX +fujNkSQCRWZiaBeN6PzDzKbmxaZy14xJGsWWkKHh6f3suW8R6LuOcs0hOR78wqipYHl Z4Tw== 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=PbgPIk/2XBhLmJmvijXy/O7PJI2zXmteRij6FlnpexA=; b=KL6Dc3D/1rm5doHAVkYnXUQKKLY6KswCdZOx9u84Ua/wBTHOHhgkmaK4tv1VHzitPi gb5i3niU63F94FOoshnDZh4gQPcyl3YvtnvEMoKHTn9oevSvxUcF2T/AicfLRCMEuzKR FmGNZUNeK7SSDhTFilNlx9ckjl9DBXCANRLyyDf6GDX0kvUTTJJGwcMlzIvKtYaHjKdO f6dBFDDgWV/Xlbo0INtxDZcg2GzxmsHhu4NE5XcHmr1+0RapF4LcDBt8CV+Evqk0CRqT SHKeLziJ9j2F+Sca+1G7fvzeGDTxjWiI2Tmsd9u25qA8VZnkbTxr17AB8ZBPi68pPaV2 68Pg== X-Gm-Message-State: AHQUAubQ7cR2heJqGP/L7kBrkv4ttpDDWcucJKJiBIyVVGzbcoeFtzoX KDBA2W1t5Q2wIoTZl9cWkqhylgGOeOnAl5c+JjCXsw== X-Google-Smtp-Source: AHgI3IYZ2pdVi4p+OhfPduuh7XDEk0obudauIgoFEsCnFrqqXm4sLr6XUFNvXNCTDOdj+e2prg5nvCv8docfIeXaac0= X-Received: by 2002:a19:ec0e:: with SMTP id b14mr8910252lfa.151.1550341739554; Sat, 16 Feb 2019 10:28:59 -0800 (PST) MIME-Version: 1.0 References: <226B512C-02A7-4555-9288-D7A2DA89F068@benramsey.com> In-Reply-To: <226B512C-02A7-4555-9288-D7A2DA89F068@benramsey.com> Date: Sat, 16 Feb 2019 19:28:48 +0100 Message-ID: To: Ben Ramsey Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary="000000000000aac08605820710ee" Subject: Re: [PHP-DEV] [RFC] Consistent type errors for internal functions From: kontakt@beberlei.de (Benjamin Eberlei) --000000000000aac08605820710ee Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ben Ramsey schrieb am Sa. 16. Feb. 2019 um 18:35: > > On Feb 5, 2019, at 05: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 actual= ly > > start specifying type information in arginfo without fear of breaking > > things. > > > I like this RFC, and from a user perspective, this consistency is > much-needed. > > While warnings don=E2=80=99t affect continued processing, uncaught TypeEr= rors do. > What is the recommended upgrade path for users? How will this affect the > silence @-operator, since I=E2=80=99m sure many users use that to squelch= these > warnings, and they accept the null or false return value as acceptable fo= r > processing the rest of the script. > > Cheers, > Ben This exception is only for argument errors. Fopen would continue to warn + false when file doesnt exist, which is what @ is nostly used for (using fopen as example) > > --000000000000aac08605820710ee--