Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128966 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 lists.php.net (Postfix) with ESMTPS id 839361A00BC for ; Sat, 25 Oct 2025 14:40:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1761403227; bh=VPITfDwKjJgnYc7bWH4yEARRbVXTndUA+rnj55itD1o=; h=Date:Subject:To:References:From:In-Reply-To:From; b=Sqhdt6kgrfaTaMJopnlBoM9IzZEGUNyvP9nX21cLoSrkqr5dlce1TKKqD99H1WckV rEEgJSRc+v/NmTJOdudD1ljaSSJXDfkh/CpUAg76b0UzkLiKQk9ftXda+0Qf6P4PnA Ztmvy/8rPb/NUScDMfMzkcexHm+4hmw7GuKpfFf3B3j6kb9uTNCnFv+m3JIKkGYGLq kBGxE5oamEl4ILehv8gZmInfxJUiA7LKYit2uVY0q+m9NSd4MyodkMsKbeBvaus/70 OwBcv4zaulIx0h8048PfZYrdptZXEM8jDmwePfIECXvhbQ+zK6/9KAaGQ0k9y51qsv 64VdwUhSdjCxw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 69A991801D6 for ; Sat, 25 Oct 2025 14:40:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DMARC_MISSING, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from alcott.smtp.mailx.hosts.net.nz (alcott.smtp.mailx.hosts.net.nz [43.245.52.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 25 Oct 2025 14:40:13 +0000 (UTC) Received: from 122-57-27-239-adsl.sparkbb.co.nz ([122.57.27.239] helo=[192.168.1.67]) by alcott.smtp.mailx.hosts.net.nz with esmtpsa authed as varteg.nz (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim 4.96) (envelope-from ) id 1vCfR5-00CvFu-2W for internals@lists.php.net; Sun, 26 Oct 2025 03:40:03 +1300 Message-ID: Date: Sun, 26 Oct 2025 03:39:55 +1300 Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] RFC proposal for adding SORT_STRICT flag to array_unique() To: internals@lists.php.net References: <48b2d4f5-2baa-4dac-9f13-163ac68a4adf@app.fastmail.com> Content-Language: en-GB In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Hosts-DKIM-Check: none From: Weedpacket@varteg.nz (Morgan) On 2025-10-26 00:16, Rob Landers wrote: > > Object identity and value are different things... https://3v4l.org/uZTsN > > $white == new Color("white") That's comparing the values of the objects' properties (which may or may not be relevant to its "effective value" - the comparison applies to private properties as well) and considering the aggregate to be the "value of the object". Regardless, the comparison is certainly not useful to me (where recursively grovelling around in the objects' properties would be prohibitively expensive if not fatal), and doesn't make array_unique() any more helpful in deduplicating.