Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124491 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 546DB1A00B7 for ; Thu, 18 Jul 2024 18:57:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721329137; bh=NeLC0zwx3jf87gKjmPfrAON432VwPo40qLd7WX7VVvc=; h=Date:Subject:To:References:From:In-Reply-To:From; b=hbTexZgVaHG3LY/cgbcmIf/pqUifE3sxVe1sh7XfTuxK8fJmZ/t66vT9cZC5erfbv 3l2TaVKRhMwwR+El1IUCMpE3YAP9iHIY9Z5zB2wb4Ji0NEtxWB3nyuYA+L9BJNpV+1 ungSc3/cwTqoAOvBaEZzAsI3MMrxKaohqRQ+/kzKcEXLixkUFF6NY05/CCpdQ/Kw0D S9EuQnhhq/Gmegj3DNwJfZH3CRGolatrLzaoCIw5hXl2is36gVTMukVKQE1OEJG6O+ D/PUXS5zz9mEPQmKU8ix3+b52Bx+9JaUSYR+SvqF2pFiyiTlMZZRzOc2+1oLAXbFxO NgV2v8ggkaWhw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 727F718005B for ; Thu, 18 Jul 2024 18:58:56 +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,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 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 ; Thu, 18 Jul 2024 18:58:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1721329043; bh=DSN/IrpSkKjrBvbDXXNsCTJJmAI7Jhe+y/kEevEswOw=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=OccwLvihamcuhCfuxg0UGiIb64bWJlPXz9sGAY5gSpGXMIOrV/r0ocvuyLHkb4jFM 9E66KTnvG0/0tTkaBgOSutCgrt5fu+/cvouwxkT2ddH3YAsoZj78dWbe2sjtOkuh1q WoBxc8M0EcPyLmfIP3T3K0RhE4XnFlFX39AISUxeO4qxsrtN3QrnY+z5tW6cHe1NwX 2nH8yj/ETIiReSHpirt5nD5F3FOK2lpDUS+9rPTBTZL4egzz96eJINOmS8RuCg0f3s JcAvFG2lflYXHz7k0+8+YEuwe1oNa7lAHTM0WtGYlzQyc0kE+tkKUKJYdBo0gn7s2v NoOsIhkWA5Bkw== Message-ID: Date: Thu, 18 Jul 2024 20:57:21 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 8.4 To: "Christoph M. Becker" , Juliette Reinders Folmer , internals@lists.php.net References: <6683CDE4.7050607@adviesenzo.nl> <668B5728.40300@adviesenzo.nl> <61cbb650-17d7-4dbf-a73b-8265d6af2d4f@gmx.de> <36c412df-7752-4554-af6b-d4696fbd2011@bastelstu.be> <84d2e07c-f0b4-418c-95c6-ec760dac9146@gmx.de> Content-Language: en-US In-Reply-To: <84d2e07c-f0b4-418c-95c6-ec760dac9146@gmx.de> 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 On 7/16/24 13:04, Christoph M. Becker wrote: > See also a respective GH issue regarding deprecation messages: > ; it probably makes sense > to include an URL in the deprecation message, or maybe some code which > users can use to look up more thorough information about the deprecation. To loop the list back in: I've replied to that issue that as part of the #[\Deprecated] RFC implementation new deprecation messages were added to (almost) all functions that are currently deprecated: https://github.com/php/php-src/pull/14750 In case of utf8_decode() / utf8_encode() the message just points towards the documentation, but there is an extensive explanation discussing the possible alternatives, for the others the message already points out the alternatives or explains the deprecation in another way (e.g. for the *_free() functions that became obsolete when moving from resources to objects). For uniqid() there are already various warnings in the documentation and today a PR was merged to adjust the description text to avoid using the word "unique", because it was factually untrue: https://github.com/php/doc-en/pull/3571 If the deprecation is accepted, then the list of possible alternatives that are already mentioned in the RFC can be included in the documentation. Best regards Tim Düsterhus