Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113199 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 33334 invoked from network); 17 Feb 2021 20:41:20 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Feb 2021 20:41:20 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id F26AF1804B3 for ; Wed, 17 Feb 2021 12:28:21 -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_40,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-Virus: No X-Envelope-From: Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) (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, 17 Feb 2021 12:28:21 -0800 (PST) Received: by mail-ot1-f52.google.com with SMTP id v16so4887694ote.12 for ; Wed, 17 Feb 2021 12:28:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=b5kUPgKWRrAugXuo2TLMF9RWo7NpcmJCmXYFajRU42w=; b=L6OLhrOhWAYGt5bhJWxScYwAgi0tdOYxDmuA5ebi6x2RYsJkD8me16Itpt0urbTK86 W+SUjtPh7RjO8mb4XMbcCQqAsMTqFYs7KxCNW3uPPN+CYgP79ccWpQUqX585Y5qWkVQx 6Yj/LmqeduE6jlbGiA1vg2MaCHSNK8NubtLs7FpxOdYxiHSAxaOCd884zRN01eNEWZIn BGtF+8/F9UFInduAeFa1hmLDVEZPvBsthGIjYFcuySJiY2gt6gJvoLyG+jae/LoztwlN Y5v1n27zRsagdg3DnUQoES++zw+5YievN6gNeloOMMelnGYqcUAU02hK5Iw4n8m48/M3 Ie5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=b5kUPgKWRrAugXuo2TLMF9RWo7NpcmJCmXYFajRU42w=; b=jXLe7+xP0sEN73rshV9Hg7wYl75hRoqxz9UcA3RQlllF5Tt+QmDzLtsvbRSvZmaqYj RpH7pZPZNU0gVmAx6eGeii25umCkg4waUE8hdrcXNZNFjXYzg6mRbrwh0hDi/A43VhQ3 /IBsYWFAFzwZypeJ+ABkVqgwFdV33qoFueMSg2eoUbiIcc7R2ibzA5lu5TN/FpACauz3 M616sOhfARdsGXGFthX+xy/U2PhKLwlFLGnkqXiu8gW0oX5bTJSGAvoNvV1Hogdnuuot aUoApF1tUEEythqhABhCrbLy0w1bza5QS+CWPYSNnjjUHZBsTC2fnzrRt1J6PW1acFa2 7QEg== X-Gm-Message-State: AOAM533Vwj71LIt/SSpEGC4jQW+SIz4UFVl5EM9ywEarTAY0mxqelod3 MWmLqxNGnT4xvQWPY9HmcOcI/V/7E1gPq2zJQU2LWP+SLEk= X-Google-Smtp-Source: ABdhPJwu93OhKQXb9h0QUWvzfNsiw/g8VASE6ZeNK3CHfV+xnBn6v8VMThlsXumca3vHkgClOVmcY0cUNdTt9t2i/XQ= X-Received: by 2002:a05:6830:113:: with SMTP id i19mr632363otp.219.1613593699053; Wed, 17 Feb 2021 12:28:19 -0800 (PST) MIME-Version: 1.0 Date: Wed, 17 Feb 2021 17:28:06 -0300 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary="0000000000003e71c905bb8e0fc0" Subject: preg_replace(string, null) is allowed? From: david.proweb@gmail.com (David Rodrigues) --0000000000003e71c905bb8e0fc0 Content-Type: text/plain; charset="UTF-8" Hello! I am in doubt if passing null as the second argument to preg_replace() is valid. Actually, it works as expected. https://3v4l.org/0TITS But doc only accepts array|string. I am asking for it because PhpStorm will not accept it. So if it is valid, I will do a PR to PS stubs. Thanks! Atenciosamente, David Rodrigues --0000000000003e71c905bb8e0fc0--