Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124457 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id BB9761A00B7 for ; Wed, 17 Jul 2024 09:01:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721206988; bh=FowSd2coZchbKdCvRSjhalDivG1sklzcET7EMMDSXK8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=mC3iT6SVECGQ40+uP4FvZ+1nwp+BY1D6Jlpr2PJ/lUfAleEN3q2JBxkKpu8JisGJX 7TS2ScUbPj9D37mlvx9wVhm/AU/UbXp2HWsg6iGF5yXMFDLgfKvTCBq16fQL7sIYJb pHrp5SIMm/Li5neCyOyXU+5L7sHkmsTVONB5D/wj144zx1VGpuM/J6TUE7nLHQ8k+Q A3V4iCsRh3CH8jDUaxtjuyriS+oOlCv62qlvcmqD12RRH5eDapvGayfigeob1rbHrl Tkk3nqPOUngKOZWhTL7MOCeoV3hPMSW/o5DBRkM33EsFAfiz3mU3U1wIarZBHO31ij BqW0KE0Hv0Guw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A6159180976 for ; Wed, 17 Jul 2024 09:03:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 17 Jul 2024 09:03:07 +0000 (UTC) Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-42793fc0a6dso44441705e9.0 for ; Wed, 17 Jul 2024 02:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scriptfusion-com.20230601.gappssmtp.com; s=20230601; t=1721206896; x=1721811696; darn=lists.php.net; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=PUiakOPVE1gR7OG/i9tW+aG+1DFNCny7JRLeBM5orsA=; b=cGw8eKsI80vcr2O3o5AMMxK86QIbPgdeupadC1qvneeDyBzwGF1incRF50KwXeFdF4 8txKZDxYo9ouEFB2x1dTD7JjW6NSX4pTBlGUj6w1Y7VBwcVhS2pGwYesSRU/BJ/HFn7c CshQj+0FUDTFr7hEXJvEd83nif3CYca9W4lGg/H/NH4p/9GhpNEY/Vtm/0+wFCQKk9xg iAlJ0/3SQkgzGegMlz/JOLUjCTCr0qZ1GD7O0n6b/1zuMWbt+9eDTxhK629LgtAkgwaC VeBo1sWd1SkDEg0HyVFWh3GaB9WOEmo/5ImWvvJHB2AeKQJO/syBFLNZ1HUQgHL4dL8z Cl7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721206896; x=1721811696; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=PUiakOPVE1gR7OG/i9tW+aG+1DFNCny7JRLeBM5orsA=; b=jUXQ1FVgL0wOymVoSdxyFSJdmpFClJSDFAcFxNr9jBkaVzdO6S9ybbro9PVhtvoqMi PjXXdhNB6ItapMyyeD4NhowXbhNBXlaU/lonIKM6+RgsePfdvcVoGa+kxBLGdkSLIW9z GDeqyptuU8nDF8xsf9Ch5nSNcVWvayxckg2XkQZAYp00wztafWJQjZrqZX3iYc3/SznO 8Z3tupo5c4jW9MYG/NJyAsMW6Um+xx6XWZFu/PuURf1HT3gxjuLZT/VHMt4R986SDdP5 7a9ks4qHGd4MHN07qlWFCpQSnDg+9uZOpM2xtKZk9lIbdafWzAuzQOrqiEABk8leXcXB 3ljQ== X-Gm-Message-State: AOJu0Yx9iflso07UNB1e7DNvnxV85OciTqpNQfTefSfILA9Rl4KvkCm9 aDORTfwZRyCprWBuEzdS62U86bY6DublxOGvOx60/BKYnKnDBJeqvRz9Nu2/vRU= X-Google-Smtp-Source: AGHT+IHxxPAwl3YeAIiPuY0Hqnlia7D668isQWLXso3FP7HdGfH4EiH5SbYztw3WiNgkjInnXHdFxQ== X-Received: by 2002:a05:600c:358b:b0:426:67ad:38f1 with SMTP id 5b1f17b1804b1-427c2cf5698mr6591645e9.26.1721206895984; Wed, 17 Jul 2024 02:01:35 -0700 (PDT) Received: from ?IPV6:2a01:4b00:bf09:5101:2c90:b031:4ccb:823b? ([2a01:4b00:bf09:5101:2c90:b031:4ccb:823b]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4279f239876sm197740505e9.3.2024.07.17.02.01.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Jul 2024 02:01:35 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------yWhzTOQwJ70U0vDp0h8QnlZx" Message-ID: <356aa359-e109-4b2f-82e2-e15fcaf0c64d@scriptfusion.com> Date: Wed, 17 Jul 2024 10:01:33 +0100 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] array_reduce callback key To: Levi Morrison Cc: PHP Internals List References: <5bdbffef-4954-415d-9dae-4c9bd4ba0f22@scriptfusion.com> Content-Language: en-GB In-Reply-To: From: bilge@scriptfusion.com (Bilge) This is a multi-part message in MIME format. --------------yWhzTOQwJ70U0vDp0h8QnlZx Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 17/07/2024 01:41, Levi Morrison wrote: > Adding arguments to a function can mess up internal callbacks, btw, so I don't like modifying the > existing function. Which internal callbacks can be messed up by this change? They clearly aren't tested, as the build is passing. Cheers, Bilge --------------yWhzTOQwJ70U0vDp0h8QnlZx Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
On 17/07/2024 01:41, Levi Morrison wrote:
Adding arguments to a function can mess up internal callbacks, btw, so I don't like modifying the
existing function.

Which internal callbacks can be messed up by this change? They clearly aren't tested, as the build is passing.

Cheers,
Bilge

--------------yWhzTOQwJ70U0vDp0h8QnlZx--