Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130806 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 B59621A00BC for ; Fri, 8 May 2026 07:49:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1778226565; bh=44JnDv1+YaxG36WQDBLE3+8JI+kUazrprBrzGqV+TTM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jfETSTu4GB+YJNqZgwnzJSODYB+31CIco2E290/E8as0S02xTcc9pd2ZvcfDuNTR5 WH9fLzEU9Iy62kV3Xt/2eSyV+S7S2ozbYMtJ5RjZ/tcZMNHCgjgTRu6K0FhZH+OEuR 2Ggtt+9pAcDy9rtiQdURXTtdHBu30tW/w7GvMLwkx34/Nwj9RdnWTtbRWULugSpMvw c3fBigIRbxklpOjpYsIm1Lvt0TVn7/qIm1zA5gtDsWc+QqiMEzQkg6oumn2i+I6yOv qRKSpObRTHOGWRZAGGIYqgLjUADIC04EHlF1TgcgJYHVpql5jaD2IUNNNgtrDqugxG 1ESt8jvPhAdag== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BACF11805E7 for ; Fri, 8 May 2026 07:49: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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Fri, 8 May 2026 07:49:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1778226557; bh=FGK66m9Ei5gOq1qIJNMX1UaHv6R7VcTxHufRrqXBN9U=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=Lj4lJYW4kENSWUm1HF7ve4SdVRUmhHp7uraRM72b2yMy5QDgaRYAJUxjA2RM5PQik 1ilAfQBfdhmNdmgIiTkowlSLGRqrJPiPmqeu+My50mrU+YN+Eh/5Bi8IkGQ9f/9Ym8 UX0fiaDjorUAsCBwV52+7iGHy6SonywpzFjN9dce1+D2/kVQVzcpEaK5U/Y3FNYWMi Mw2Cgg2/nsGxGgePlrCqOTf7J+OAe0DXQR1yH6FapgyB5kbRN+kkyAVoX74CTJjLob 7gbNzqBFhPPnsPdKX9riIrVTl6/cqn+vPE+gS/oBqYsrW8JJbmERoWZ5M6L1tmkhQY MpJGgUqfD8swg== Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Fri, 08 May 2026 09:49:17 +0200 To: LamentXU <1372449351@qq.com> Cc: internals Subject: Re: [PHP-DEV] [RFC] Deprecate Metaphone Function In-Reply-To: References: Message-ID: <7c68917c872b944504ae7d8443150e25@bastelstu.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi Am 2026-04-25 12:33, schrieb LamentXU: > I therefore would like to introduce a RFC to deprecate the metaphone > function. Maintaining this legacy function in the core provides little > value to modern PHP applications, and users could be advised to switch > to more accurate alternatives. Even in the case where strict backward > compatibility with core functions is preferred, people can still use > soundex instead. > > RFC link: https://wiki.php.net/rfc/deprecate-metaphone > > I am happy to know your thoughts on this. I believe the deprecation of individual functions is better suited for the bulk deprecation RFC at https://wiki.php.net/rfc/deprecations_php_8_6, because there is often not much to discuss and having individual RFCs for everything just adds overhead. That said: I don't think there is a strong argument in favor of deprecating metaphone. Yes, the algorithm is dated. Yes, we likely would not add this kind of functionality to the stdlib nowadays. But it's not *actively* harmful as far as I can tell. It does exactly what the name implies and it's not a security-sensitive function where we would want to steer users towards safer options. Best regards Tim Düsterhus