Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117209 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 84197 invoked from network); 2 Mar 2022 13:06:24 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Mar 2022 13:06:24 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 84E8A18050B for ; Wed, 2 Mar 2022 06:27:53 -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=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (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 ; Wed, 2 Mar 2022 06:27:53 -0800 (PST) Received: by mail-lj1-f171.google.com with SMTP id p20so2584021ljo.0 for ; Wed, 02 Mar 2022 06:27:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=craigfrancis.co.uk; s=default; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PRG4qIYSZ/F0huRQ0rB09rH9G8xnFp6peWT5+rH8eJs=; b=XjfaMgqxKezfx7+26i2dMS9YLK62AGNkdsGEy8yRjI3GUFLcY4wo0aAGvtTWdiJEJS 7X6Rsy2iuX3/eUYGELs1ScR+i9OlBibUGTNXhLeZu+x4dHlyaYy7KfnuedtdwXqHPqte BMHZFVMo+HAogEpaI+m70ux4TOYLvlTE6Hjf8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PRG4qIYSZ/F0huRQ0rB09rH9G8xnFp6peWT5+rH8eJs=; b=GGi8F6uI22TgB6aPH0FtKewrIVsNvCrosWNgr0Sgno5Cgr951g7R6vXjPoXyZKNzFx D/jSJT8yTHoFh003mElgoFtv2J/k6NYHIP+PY6YKAGjnMHF1+Lkr6eROdcRlR4nHEqNd TP1roKbSH/FKE/TN4ox56kuC735GW6ev9jxsGpIefKO3CBwDFNcBLyME6J+tjsFKm4NV eYE3Wqd9SOoFfefI7jMkPV+n9awlV2Zb8bMpchwqX+paOuiqtdCkyxGyN0IkgftXXUe4 L9ecMoOhCRwGyrjAPOQjZfYx07GkJH2hZKPocb1vsm462SnBb8cBwdOBRMlP3S3sHfFQ G4Xw== X-Gm-Message-State: AOAM530Etaq2JWOxNORMellO+E7JGpFZ1yEF915Zy3xLyIpqbC8rc/SZ 5zF5Pkdhcp57nEGpMrHPv5CKlI7UOq9SotSGiZQTZVX2XIxWb+Q3 X-Google-Smtp-Source: ABdhPJx9mOrlmpIN7LNPtnMQRbX73bD35+Pc9y4GiYZcuZsP9JQ1mCyZbhLMgE4DUa/qVhdcQhakOOAtznvmQGJ8iuo= X-Received: by 2002:a2e:9844:0:b0:244:c274:10db with SMTP id e4-20020a2e9844000000b00244c27410dbmr20547392ljj.120.1646231271185; Wed, 02 Mar 2022 06:27:51 -0800 (PST) MIME-Version: 1.0 References: <983552d8-11f1-b5bc-fb82-148347982fda@gmx.de> <5494eaa7-2fa6-8364-9683-a2c8c9789d81@gmail.com> <69642616-72b7-44fe-97a7-27ae03bc8fce@www.fastmail.com> <7fbed755-42e2-d023-285f-39863a97f297@gmx.de> <3665C848-B4C3-4528-AEFA-02C868748AA8@cschneid.com> <0b5bc29d-3814-0e1d-b94a-47790019c778@gmx.de> <4bff3f23-a3ec-4416-f44e-1f4f5d7e0caa@gmail.com> <2d06bc12-7d7e-4a88-b823-de64642381e6@www.fastmail.com> In-Reply-To: <2d06bc12-7d7e-4a88-b823-de64642381e6@www.fastmail.com> Date: Wed, 2 Mar 2022 14:27:38 +0000 Message-ID: To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="00000000000023347a05d93d16e6" Subject: Re: [PHP-DEV] Allowing NULL for some internal functions From: craig@craigfrancis.co.uk (Craig Francis) --00000000000023347a05d93d16e6 Content-Type: text/plain; charset="UTF-8" On Wed, 2 Mar 2022 at 14:17, Larry Garfield wrote: > Null is not an empty string. Null is not a string. Null is not 0. Null > is not an integer. > So what should this do? $name = ($_POST['name'] ?? NULL); var_dump($name == ''); Is that now going to be false? --00000000000023347a05d93d16e6--