Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116997 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 59801 invoked from network); 7 Feb 2022 13:59:18 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 Feb 2022 13:59:18 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B25D31804C8 for ; Mon, 7 Feb 2022 07:15:01 -0800 (PST) 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.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_NONE 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 out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (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, 7 Feb 2022 07:15:01 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A5D215C0118 for ; Mon, 7 Feb 2022 10:15:00 -0500 (EST) Received: from imap43 ([10.202.2.93]) by compute5.internal (MEProxy); Mon, 07 Feb 2022 10:15:00 -0500 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=fm2; bh=7itRtZt9wWJVt1zNu jUnbwo4JyiCbDkqRGkf7RWs3PQ=; b=hJzFIZplF0dzv/yU1wj7QWDxHFAhgzr7d kxKwyF/WpHBix4RVqC7BK/C0yW4QfzvRjQ1rDWBBNvClY9mT6CE1Wke6677fCzJV crwIZ7w8LcoSjNXx/3+8yEdvSXNE5yrGmGUTuVN1wiH5UeA/yCzM6IgBeFb9TkR8 8HE8yxQUyF41QCeYbEWImbxyDsM22IvVzwzm4zC1K/T5EXGmk1SqigjxdQEqodLX ZnfKWu+nbOMJVD/17CpJsOVN9WzN7BhCmMUDIWWmH+MWunMryyuGRB5shFOYamu7 zfY22oOnJt0z+dpfAkm9gsnZ/4/5I/dHLRP/MKjahHZk+filP982Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrheehgdejudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfnfgrrhhr hicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh eqnecuggftrfgrthhtvghrnhepgeelgfekudeivddvteffueejffdthfejieevhefgffek udevkedtvdelvddvffefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 19608AC0E99; Mon, 7 Feb 2022 10:15:00 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-4586-g104bd556f9-fm-20220203.002-g104bd556 Mime-Version: 1.0 Message-ID: <082301d9-2e69-48ce-a85e-a6e2a57e3f9e@www.fastmail.com> In-Reply-To: References: <7CCE6061-F5BD-4C10-8BD1-F5A2A994D5F6@cschneid.com> Date: Mon, 07 Feb 2022 09:14:39 -0600 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] Allowing NULL for some internal functions From: larry@garfieldtech.com ("Larry Garfield") On Mon, Feb 7, 2022, at 6:57 AM, Christian Schneider wrote: > Am 07.02.2022 um 13:07 schrieb G. P. B. : > So you are basically saying that we should discuss making it > strlen(?string $string): int > which would be cleaner, I agree. I would agree here as well. The goal is consistency, so keep it consistent. If there's an argument to be made to rewiden a type to include null, make that case and have that debate on a function by function basis. No mode-based switcheroos. --Larry Garfield