Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113205 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 84462 invoked from network); 18 Feb 2021 09:25:32 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Feb 2021 09:25:32 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C49721804E2 for ; Thu, 18 Feb 2021 01:12:44 -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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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-Virus: No X-Envelope-From: Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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, 18 Feb 2021 01:12:44 -0800 (PST) Received: by mail-lf1-f41.google.com with SMTP id v5so4992726lft.13 for ; Thu, 18 Feb 2021 01:12:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OClcJKou7mcZmKktWhX4XyYgG7RMAX6Z1+qGR3J+FJs=; b=ef5uyPw8GHuLOTLsNeKUqBogdnWxuTiWTtAJUYbMYibewjCpSkBss77Er6sQECzY6Q Pl3hee2IMtjaEPfRZjeAAjgSyvAqYAmUTH7MBlHYp41Du00N/ywBS8lgd7BbC+CBNQgS klaLeL71W9IkZMtekHEeTHbmmEJOgqKx25die9XgXl87BfxevqNTlJ1VnyVRqzWasz+7 AOI7//nW4UcpwQTCRorIFfs2w12IbYL+j0HH4iZ+hPRZnipozqwsUTrE6lY/QuHogbAg j50ZyJj3PKDMC16AwOCc3EJppMUJjzQY0xNmyPz1WGq0zWxoKjbYaIXKZNWG0vgyLRKP VClQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OClcJKou7mcZmKktWhX4XyYgG7RMAX6Z1+qGR3J+FJs=; b=f7CV7laIqbf4hA+JlB+tBHUWbW8ms4MGDt3KlFydy7KHAOY6zWDpKWTeaz4KPrJL6Y /VgnxHiRz38AK62iNEdaTkpK7ivhBLstD027q1/N7xPCF5dJ4VJtNUSVx5dCl2cQFt7m r2y/nO2p6b3brPKXAOYvxwLFydfHqgDV3FPwc0/joZe7MMaXh4oyA4yoE22woV6/r5so P9bqMZg0u4SCOtylPqzAZEIMYDTWoT0tsO8nwzlrWtMhIDkGkAHqJnpTDTn2enRclZyg M7PRQ4VeQf9Lswv0UN59SUrDFDmfNQYxSEfNcGrhanZ6O2AuDKp7735qoWLpwE19PnbE Q7+Q== X-Gm-Message-State: AOAM532sb2fE8vFkjgksgIpE2TkO/Y1AhwrCTFu1Ct0FdIqrVFBjkic4 c4y+66o0j41GlKjs4f+oGBESpi6HM3744ihxsw== X-Google-Smtp-Source: ABdhPJycAyxGpnJWHuqlx5cO0/C6aXKHXASTRWZyHwShuwr4kxzFXmXtPn1PGMBOFMwSF1Tuuevko3C7dshhwy+hmwQ= X-Received: by 2002:a05:6512:3453:: with SMTP id j19mr2055994lfr.119.1613639562712; Thu, 18 Feb 2021 01:12:42 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 18 Feb 2021 10:12:31 +0100 Message-ID: To: David Rodrigues Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000ee58c205bb98bcf9" Subject: Re: [PHP-DEV] preg_replace(string, null) is allowed? From: guilliam.xavier@gmail.com (Guilliam Xavier) --000000000000ee58c205bb98bcf9 Content-Type: text/plain; charset="UTF-8" On Thu, Feb 18, 2021 at 3:15 AM David Rodrigues wrote: > Thanks! > > There is a reason why it is not supported anymore? > https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_arg "PHP RFC: Deprecate passing null to non-nullable arguments of internal functions". In short: to fix an historical inconsistency between internal and user-defined (esp. polyfilled) functions. First discussed at https://externals.io/message/105845 "Handling of null arguments to internal functions". Rebooted as https://externals.io/message/112327 (and https://externals.io/message/112996 ) for the RFC. -- Guilliam Xavier --000000000000ee58c205bb98bcf9--