Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104448 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 32966 invoked from network); 16 Feb 2019 20:50:48 -0000 Received: from unknown (HELO wnew4-smtp.messagingengine.com) (64.147.123.18) by pb1.pair.com with SMTP; 16 Feb 2019 20:50:48 -0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailnew.west.internal (Postfix) with ESMTP id 1D90C3110; Sat, 16 Feb 2019 12:34:44 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Sat, 16 Feb 2019 12:34:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benramsey.com; h=from:message-id:content-type:mime-version:subject:date :in-reply-to:cc:to:references; s=fm1; bh=26rYscQkuP95tUAIkaSu8VF Ua7UbtUSULqKE5V9V5xE=; b=lDQonlfKVjO73c2gWvAR0EaU6GiXwEvdV5pJbZ7 b55YJ7CNeAhMgUlL33UQLKEvDLu8XuWA3cT2m7oqLwfOqYcUFIvjcDu5vr0lqgum X/VptG1yFfm9Mob8hLSbMNQdSr2/0zEP99NsfSiCzdEGRK8YfBiHOPqjYshgz8mw 5P91x25cy6CoX1GUWf7ryv/EtKK1eZROWkH8yJVOyWsuqFlx6fW7TukIY2AfYqBO Tr5FqighjmLnjkNGlkyoCJmporuS+phK2G1RMwTXU5+sGNq83UMlm206zA0GcpPr PfCQTRLXAETpbEdhppPhOWHSzbxyLaew95zXSRiUeamMzRA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=26rYsc QkuP95tUAIkaSu8VFUa7UbtUSULqKE5V9V5xE=; b=zlxwBr8CYzeneWOjoO1bLn cSjK+RbuQkEuKvbUfjrZUE5mW6T7sV2bqDU4WAyOjMxcw+E934lOc2MVXMlKitGE 2gmpba+exovsBXFI5FRzu/LD3ugwV9H+YwrzXHLaXro3Nm1+h5E7uimQTqVhNZjy 4+i/oBd2X8B7zLiXgiq85Cl15HpqvxbBXXkb+iiZubLBXX5wIxO6sgAevkqW5ako +9r/1WQEHdtVmtNWlIlnMEo1GbOBX+YLSKFtExUGcXwBsM6alJm5nzo1rLvbBtkW 9ymYzAZ0+pG2Yw4OA4V2ESXqN2FxUIAQCB0pyhjg7x3eQm357gHSggYPRQZbN37A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledruddtledguddthecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecu fedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffktggguf ffjgfvfhfosehgtdhmrehhtdejnecuhfhrohhmpeeuvghnucftrghmshgvhicuoegsvghn segsvghnrhgrmhhsvgihrdgtohhmqeenucffohhmrghinhepphhhphdrnhgvthenucfkph epleeirdeiuddrudejtddrhedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegsvghnsegs vghnrhgrmhhsvgihrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [10.10.42.56] (h96-61-170-50.lvrgtn.dsl.dynamic.tds.net [96.61.170.50]) by mail.messagingengine.com (Postfix) with ESMTPA id 91EF81026E; Sat, 16 Feb 2019 12:34:42 -0500 (EST) Message-ID: <226B512C-02A7-4555-9288-D7A2DA89F068@benramsey.com> Content-Type: multipart/signed; boundary="Apple-Mail=_39EECB90-B602-46FE-8616-AC967DEE5688"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Date: Sat, 16 Feb 2019 11:34:41 -0600 In-Reply-To: Cc: PHP internals To: Nikita Popov References: X-Mailer: Apple Mail (2.3445.102.3) Subject: Re: [PHP-DEV] [RFC] Consistent type errors for internal functions From: ben@benramsey.com (Ben Ramsey) --Apple-Mail=_39EECB90-B602-46FE-8616-AC967DEE5688 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Feb 5, 2019, at 05:22, Nikita Popov wrote: >=20 > Hi internals, >=20 > 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): >=20 > https://wiki.php.net/rfc/consistent_type_errors >=20 > 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. I like this RFC, and from a user perspective, this consistency is = much-needed. While warnings don=E2=80=99t affect continued processing, uncaught = TypeErrors 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 for processing the rest of the script. Cheers, Ben --Apple-Mail=_39EECB90-B602-46FE-8616-AC967DEE5688 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCXGhJsQAKCRCwLZeYnIwH G0g7AQCIAy2LfWAVYht7ycQSKHrdI2IXZbg0cF3UvQThy8J5dAD/ZpOdK0pZaMtE /weCjGgrz5opAA/NHYwTkvlv6wAb25s= =QKyC -----END PGP SIGNATURE----- --Apple-Mail=_39EECB90-B602-46FE-8616-AC967DEE5688--