Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124690 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 1E7481A00B7 for ; Tue, 30 Jul 2024 19:20:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722367324; bh=2GSRiyPwwt1bCR7CE/eM5pPJPGBadO7YPgguqCuYmiA=; h=Date:Subject:To:References:From:In-Reply-To:From; b=TKpsycbGc4yMFIpzU3WlpNS8oCU4iXqNwxDg7SerEbjDss8NrQjhjv6luPfOVFJ7N ZHllz1yu0MO/6p6QnrqqaTti0G6f25PTFtpqZ26TYE4BDhnxR2cwOItz/79pqKqVR0 aYi5pzhjZPaSXaZLnmsdRl11LEIB7CDSueArPJXtUkXxcJmczmV6Y3Ys/GBAkob75+ 2vZ+gB1jRZRhFf3hfBTh20+INulU979UvroGODYPE+F8Cj4s2c+/pR+VeavbDiGiyR zoo8jLcyNL5tjaq0Yu8hRo9wfurSUa5P6HTBJ0dvF+wAQ/4wzN0uu0q/udmcQyRmU7 Pt1x+5ANuKihw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2062E180078 for ; Tue, 30 Jul 2024 19:22:04 +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 ; Tue, 30 Jul 2024 19:22:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1722367225; bh=gxCuN649LnwuQlVjYTCG0ttUm4PHKlE2oJ7teZ948GE=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=UpV1r0eL9CoOjAQnXKC7YMAco5xEHoe5m9unE2uHwKT9MS+XhGVAibiXX/hbGmgL4 y48hj6+wPC9asEGF0RSkPZWUZ10aku5/dwxhS+W85YJIROR3vCo2lXJ4FobltIuBUG OumXT66TzeVpWGYipa840XBn7TP8mNSMq2d1vqKpGcM25sdPw9bKichfVQU4NNWiXA Y0QFp51ud5yhwzM1s/CAPseUiBxHzJ4Y8MbEqQsxoE4LmINpiuQBepgyMGUQdVIeVB OoYOoPaLRUUgSib3pBojWbZaiZGwFeJtV9ArgSC+Jg+A+kLIdy+vkMYKYsKFf6l2uq SeZP+LKuwoTXQ== Message-ID: <7f787046-17e8-4272-bd00-074fc21b9808@bastelstu.be> Date: Tue, 30 Jul 2024 21:20:24 +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] [VOTE] Deprecations for PHP 8.4 To: "Christoph M. Becker" , "Rowan Tommins [IMSoP]" , internals@lists.php.net References: <1a88918e-e808-d778-45e1-53797660e093@php.net> <95147d9d-d6e8-4396-bf0b-409c33679f90@bastelstu.be> <89096756-9f50-4b10-9630-d3b18e4b9c29@gmx.de> <3beb3488-94fc-484e-ac6c-ce7a7a0facd2@app.fastmail.com> <921dcf17-280b-4005-b31f-5811dbe5ce62@gmx.de> Content-Language: en-US In-Reply-To: <921dcf17-280b-4005-b31f-5811dbe5ce62@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/27/24 13:24, Christoph M. Becker wrote: > Hmm, such soft deprecations should be a good thing, but I'm afraid they > are not really reaching much of the user base. Remember ext/mysql? > That was soft deprecated for "centuries", but still support channels > were burning when it actually had been deprecated, and even after it had > been removed. (interestingly still > says the package would have been moved to ) What prevented me personally from adding a "soft deprecation" to the documentation is, that the function is not actually deprecated and not slated for deprecation. It is not up to me to decide to soft deprecate something. And regarding your remark of not reaching folks, I agree. uniqid()'s documentation is already full of warnings, but folks still reach for it. > Maybe, just maybe, it might be a good idea to repurpose E_STRICT for > such things. Basically a three step deprecation: first document that a > feature is obsolete, then trigger E_STRICT, and only then E_DEPRECATED. > I haven't really thought this through, though. I've proposed a deprecation instead of any other error level, because it is the least severe error level we have available: Libraries and Frameworks nowadays generally understand that deprecations are not hard errors and thus do not convert these to exceptions, but instead just direct them to a different log file / show them in the framework's debugging toolkit. Best regards Tim Düsterhus