Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111685 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 46363 invoked from network); 25 Aug 2020 19:49:51 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Aug 2020 19:49:51 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2725718054E for ; Tue, 25 Aug 2020 11:52:49 -0700 (PDT) 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,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-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) (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 ; Tue, 25 Aug 2020 11:52:48 -0700 (PDT) Received: by mail-io1-f48.google.com with SMTP id v6so13576364iow.11 for ; Tue, 25 Aug 2020 11:52:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datadoghq.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=/VFYWupHyLmx1K6IUK1gyQlYKiNw9/PU/5BECD3DuUI=; b=QQq9ielhv14vRgyv+4Ulhm8NinV28M33gS3YTJL0FcjS7+dLt0FkSvLuzNeLRT3kwb pS/pmVOX6Iasvo8jUbrJjTruz19ycSNedEzq8VpW2E5cl9akyWsTp0jY6LVGCBFfYUTd mZMRTRQfwX0Mdq8XB7Ox2cmmyFH2CN5TowmJg= 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:content-transfer-encoding; bh=/VFYWupHyLmx1K6IUK1gyQlYKiNw9/PU/5BECD3DuUI=; b=mpt2Jr+h7JcvJIdj6wZ7NfPPD57RiUmo81xzIx9hmLJBYNxQW8D56ryAFn6W+dHr6J Iaozvvo7XOIfcSA0r6v0hA2jcsNwIwUQiS6Ri0475gERHyWSgbKK0RqS5hcaUN+KFbwK iACCInnYba5UV07n81+FIyQkMOTs4kFo6Nt0Pq/J8oGDhBPzhOjhRY5b27mxrEprucaq n/UptERQPzHyft9BliHEGlK2BQr0lYmhGJp3riRvwoJELZHiMpyNw3uiVxyhFvSfmizs e8CZxI0xb/C1evE0OELCZlyUtmdOUCq/MAct6XlVCyyhpxdzJg8VhGsmxLv4iaSDdLxS f6fQ== X-Gm-Message-State: AOAM532AUE9EdQfX+cdHw03lTEpBJdZQRvLFqspcam5gyrukbNjGSB7W Kzx/Li4HBu1XzFsvdBmPOVKvd0XsODMcUn9e6BHDZg== X-Google-Smtp-Source: ABdhPJxXi8xsFKYuaWByKFioednzhOYl03NXYo437Fy0rHfsZ3qllL4kySmXXB15eUw+gLytPX4EXoJTjvPkPaag+FI= X-Received: by 2002:a02:7406:: with SMTP id o6mr12125774jac.10.1598381564591; Tue, 25 Aug 2020 11:52:44 -0700 (PDT) MIME-Version: 1.0 References: <73403328efaefb3141bf59dcab66d4859ee264fd691801fc7c23111c03ac02a7@mahalux.com> In-Reply-To: <73403328efaefb3141bf59dcab66d4859ee264fd691801fc7c23111c03ac02a7@mahalux.com> Reply-To: Levi Morrison Date: Tue, 25 Aug 2020 12:52:33 -0600 Message-ID: To: =?UTF-8?B?TWljaGFlbCBWb8WZw63FoWVrIC0gxIxWVVQgRkVM?= Cc: PHP Internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Array map with reset function From: internals@lists.php.net ("Levi Morrison via internals") On Tue, Aug 25, 2020 at 11:47 AM Michael Vo=C5=99=C3=AD=C5=A1ek - =C4=8CVUT= FEL wrote: > > The following code stopped working in PHP 8: > > https://3v4l.org/UlIE3 > > is it a bug or a feature? > > is posting issues like this to internals@lists.php.net email prefered > over opening bug directly? or is there any special email for it? > > With kind regards / Mit freundlichen Gr=C3=BC=C3=9Fen / S p=C5=99=C3=A1te= lsk=C3=BDm pozdravem, > > Michael Vo=C5=99=C3=AD=C5=A1ek The documentation for array_map doesn't mention references at all. I'm inclined to believe it to be an intentional warning, but it may be a regression. I recommend using array_walk, as it _does_ mention reference support.