Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116561 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 11285 invoked from network); 2 Dec 2021 16:33:17 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Dec 2021 16:33:17 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B4DCE1804D4 for ; Thu, 2 Dec 2021 09:32:16 -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.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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: No X-Envelope-From: Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) (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 ; Thu, 2 Dec 2021 09:32:16 -0800 (PST) Received: by mail-ot1-f45.google.com with SMTP id 35-20020a9d08a6000000b00579cd5e605eso687582otf.0 for ; Thu, 02 Dec 2021 09:32:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XqG56FE0meSui6v6LXnEZSgPKN8jOTQIPF0ueiYmi4Y=; b=STOP/Z+aGiCQvZmYfTKrqlaj7VhoSRLePT5XrAuX2lnqvM8ZzQAiEo6e57BgahYVQA aXLybBckCyOw3f4dxw06kwiVz4jDdGkB5pCiKBLhQacg0Jk74deG4G3gmIboWLIeZEhs PQQ6sJnzAc2YowNUbrdxpRplPmOaxKUthlPhanYIfjpYBQa2MKigu8KHPTUqKfdEV+yS DYE6KVIu7lzVrFIDuwKkC6HlRWhdkqQ6juPulKH8fTDWV1IpmszfO0xI/ya1Nxq+AyU1 4dTOgzWGVKU3/LerJzHTdN9v88WAX6QUBdaN7YjY/0SO+teYKWxDYrzjgkaAHY/5H/wF a5HQ== 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=XqG56FE0meSui6v6LXnEZSgPKN8jOTQIPF0ueiYmi4Y=; b=56LtZozh8Q+w53VMcga3L+GIJijH7nXdFeh/PA5LXk37CF5MeLK74YJV0KQLr2gghz NYCg2lUy2XH605cZ8PBwuGCOUJE2jXX5S7Ibur6NgndKjDReKUtynb9r9ajv2+BtSpta bY/K/p6sL82WeO+ONnQDEpdsVteo39p+ujstkar3BsUtKqJYTk6GEYu9KNDCUGdmfEqf kMNe0Q98fnWhRZ62Lie17nlhQpnEa71gUsQ9n7MiZ42OunOIFLhbrB7gZDlu1i8Lswnn ZjXcdGh8+FwUuGavuhXcHk/LpAn7yJbEPQUQqDGrXPUJZNAIkBrq2JHmQlA2AOwG6Rge 4zXA== X-Gm-Message-State: AOAM530rXIYwiD2BRXru49qQSTt2/ao2XenFSB+4KtqTmYFmcLIA4whG 7v034IxApSa8THnTqyeMWSCdHK9Rme3hy0YM69xjOkWx X-Google-Smtp-Source: ABdhPJwrT9Tw8ObtcMXcFl/NGWYJX7UI1NB23OAqDdr6fB8Ms/KHPdh3NScMf3ugH907Vv0HGCeeJcwm/OYuoMvPG/w= X-Received: by 2002:a05:6830:348f:: with SMTP id c15mr12648156otu.254.1638466335556; Thu, 02 Dec 2021 09:32:15 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 3 Dec 2021 00:32:02 +0700 Message-ID: To: Sara Golemon Cc: Craig Francis , PHP internals Content-Type: multipart/alternative; boundary="000000000000e8482805d22d2bcc" Subject: Re: [PHP-DEV] Allowing NULL for some internal functions From: pierre.php@gmail.com (Pierre Joye) --000000000000e8482805d22d2bcc Content-Type: text/plain; charset="UTF-8" On Thu, Dec 2, 2021, 10:20 PM Sara Golemon wrote: I'm not hard against this idea. The interpretation of null in these > contexts as being equivalent to empty string isn't unreasonable. I guess > the only objection I could have would be an academic one and I can't really > defend that. So yeah, sure... why not? > > I would say that such applications should consider unifying their own > types. $a = $_GET['q'] ?? ''; Is there a place in the application where > empty string and null would have been distinct? i.e. Is a search for > nothing different from not searching? > I wonder what is the technical benefit from that? I do feel we are moving to a strict typed language. If that is what is desired, then let decide it clearly and move forward to rhst direction. best, Pierre > --000000000000e8482805d22d2bcc--