Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125809 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 889B21A00BD for ; Sun, 20 Oct 2024 17:42:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1729446321; bh=IYSpLNQFB6qYx8DpL6TckBfjAkGL9kShGzLhSdQx4qg=; h=Date:To:From:Subject:From; b=kuIp685eLYXX7VGYqNxll5tcj1Cg5+Ki/OwmMfuQWcFC5aV1oSNCJ6veb8Fl0Kviw Maa2TmhGmooMfbyBS/VQ5uScOdaCOMg+AtUC/GKMbXPRj6ujX/5KhbzFzHJvDLobeq n0/Qk/8a9HX2rqVoHo0uqBwoOd9SAoiNmSk6vCVDp1MTkaYfidPOwx5F6k6e6zPyAK Dj+cHpIAB1RfAiwwCyAglTrYtssH1I2ITJHwJP8m5hO0WrfWynRDar6jXo7c0kilTz Zy+lH9X0ulNQgjPi+feF7QQWUu2vtRFNPDpZ+8/wuqRHIXkc52GYotcVNM+Y67hGVF sR6MMLM0tLQNg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0C84018003F for ; Sun, 20 Oct 2024 17:45:20 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-40136.proton.ch (mail-40136.proton.ch [185.70.40.136]) (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 ; Sun, 20 Oct 2024 17:45:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gpb.moe; s=protonmail2; t=1729446174; x=1729705374; bh=IYSpLNQFB6qYx8DpL6TckBfjAkGL9kShGzLhSdQx4qg=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=VEQe6QTN3USOlN+/Mrw6zLXUuJxv25aVV2riS2yEzjXd1LY6jg0lUAsK9zYSeCkOf 6baigW2nyWuACoMEqTUmBHFiajYG/fLjijrC2CMO31D+wnfG+kNboTqn4KEG1ugLbu 0NZ3XW5BQcvDxnNImtWTBBig+mT4yMlWzVdzvHSi28U8ioeQuzACQIdNH6FVmksTKw 4YeWbfJvJBB0q3b8MsHLjmX34OBer76Z9guNQfcfYLLmnhgp6N+7aMpj3sCOjqScQ7 2ouoK6Eng67e8frvRM3dq9j4132fbwVtlpwVD4I1J/xOFhlWRyW5dT36qJMA/LUFvf BgLdabh+CBEzA== Date: Sun, 20 Oct 2024 17:42:50 +0000 To: PHP internals Subject: [PHP-DEV] [RFC] Change behaviour of array sort functions to return a copy of the sorted array Message-ID: Feedback-ID: 96993444:user:proton X-Pm-Message-ID: 22a6d903fe0e1b82c51fe44818e42dcaac37dbac Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: internals@gpb.moe ("Gina P. Banyard") Hello internals, I would like to propose a short RFC to make the return value of the sort() = and similar functions more useful: https://wiki.php.net/rfc/array-sort-return-array I intend for the discussion to last 2 weeks and then open the vote. Best regards, Gina P. Banyard