Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117606 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 4777 invoked from network); 25 Apr 2022 20:43:01 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Apr 2022 20:43:01 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AEDA21804C5 for ; Mon, 25 Apr 2022 15:18:06 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS19151 66.111.4.0/24 X-Spam-Virus: No X-Envelope-From: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 25 Apr 2022 15:18:06 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id C0B5C5C02B5 for ; Mon, 25 Apr 2022 18:18:05 -0400 (EDT) Received: from imap43 ([10.202.2.93]) by compute1.internal (MEProxy); Mon, 25 Apr 2022 18:18:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1650925085; x= 1651011485; bh=bLz68QuMfYWCOV07HPaR5TMT/bsE7T1pD+vjU10yAY8=; b=V Wjaj9/16463BdWlwBNWRUMmrXBDiIQARikbOkI0vnZ+E+xE6qZpjNKnqvi+6WFO5 0wtvXFAL9bvcEzgVKuGwECsMobz+7LzTuH6TGoQdDHG763uVhnIDc6p1mZABrZIc pfmZvvfzUCG/8tExVHMc2fn1ERN+qk/xmpFja39PKPxzzkuFIzBoAQC/MMvP7l+f g2NWlpn64GpESf9PRe3tJQw9xOTx/65uG+ZW3YxkJjMU94br23VsuIoMbyTtCMsC Lm1gXxI0u2nULyxcPGUP717QQAHqZdIw4jLEdRF1/VO/gX5ALCVY+5WX5fMt5BPj 7xRF1p0FenIhaQ1z/4+nQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1650925085; x= 1651011485; bh=bLz68QuMfYWCOV07HPaR5TMT/bsE7T1pD+vjU10yAY8=; b=g yZ6ql14FIt06kZ/Ureo6VMPsBGtpKMoPDpZaCMrs9C9yRz/QuXZK2aSt/h3NeItt L35JZ0kR+nlPFghpllj4dYTUE63bQAjDdajVU3lCRx1emoFVySx+ot5MvYmv3bPY 1rD6Ix8ygXQcvEJKTCe8Id31ZS4akeUROEF76vFQGST1HluY4ODj2TK2befgDLez +c4tEFuDmtVjeC5+T0cYem7HCc7Y79mtDLAjaHFzXvEj54Gap57K57P0JMOwSp00 CrdFWqVMv4q2H72nCLi174hryVUpNhzWHibwJBsFUgG6ShKfiSLE8Um3VAtNZLoG VzkoeYAEcOKjvhGYf64gA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddvgddtkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfnfgrrhhr hicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh eqnecuggftrfgrthhtvghrnhepgeelgfekudeivddvteffueejffdthfejieevhefgffek udevkedtvdelvddvffefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 49D2AAC0E98; Mon, 25 Apr 2022 18:18:05 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-569-g7622ad95cc-fm-20220421.002-g7622ad95 Mime-Version: 1.0 Message-ID: <19b2d192-fc4a-4122-8a01-54316a50fc1e@www.fastmail.com> In-Reply-To: References: <42D0A480-F262-4F72-9C4D-887762A8D800@gmail.com> <0b061f28-a087-efd3-8602-424ee03458e0@gmail.com> <7DB0A01F-04FB-420D-9025-E027E5DE02F7@craigfrancis.co.uk> Date: Mon, 25 Apr 2022 17:17:43 -0500 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] NULL Coercion Consistency From: larry@garfieldtech.com ("Larry Garfield") On Mon, Apr 25, 2022, at 4:07 PM, Rowan Tommins wrote: > Off the top of my head, I don't know what other inconsistencies remain, > but my point was that in every case so far, internal functions have been > adapted to match userland, not vice versa. Internal functions error if you pass excessive arguments to a non-variadic function. User-space functions just ignore the extras. This is an inconsistency that has caused me considerable grief in the past year. I know Joe has said he wants userspace to become more strict like internal on this one. I will not predict what actually happens. --Larry Garfield