Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123211 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 AC35B1A009C for ; Thu, 25 Apr 2024 21:01:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1714078941; bh=LwSSxvjLL89TzpRVbklrofGErJN8LvzlQXQGGHiYeQI=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=UAWBX2rlN85OjD+ZlmsfM3ATOxJlRubyOC+5sjl2GLJpdroAe0b/fQ9wl2pMPmddJ shbeuOPbaJUp8vD2/9f3l+a02ToIo3BByl6tXuA44EQooUFuu7oE+ZlBn5ny/z5Wca zNbb5VtqAA37p1X+jc363a9ztrffgHwV/vKrpxE8dwJAOy0ttX7BuMKFnmU53bRkQI GYkyiFaO/p1hEKaR3c8FwKOusGhDz9UcJawPKQS5k7vGIDmsm08qS+fTEtp0lHzdEQ Fs5D9HcLx2qqazpGCP+J1vrFVkDZJOFc/26CY8TNcrCvtDnClTFpZVmQQkZ2cqMBFl V7pbLIyEYZjhA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7E542180056 for ; Thu, 25 Apr 2024 21:02: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.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com [209.85.128.172]) (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, 25 Apr 2024 21:02:20 +0000 (UTC) Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-61816fc256dso14841797b3.0 for ; Thu, 25 Apr 2024 14:01:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20230601.gappssmtp.com; s=20230601; t=1714078898; x=1714683698; darn=lists.php.net; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=BOUkzV2LVdX3mnxLXz6ZHU19c3UxyUDWWYy8f/K3XGc=; b=JVYZVVeDQzc4LvCRZ7U+KgDuLh+Ru0s1BQwGIBcxeq+949NpDhGPqdHTAwDp/1bEUp aNv3Npskwmd8d00Je5mEvs8z2XvjJna3O/Jr9R5UEXiDx7BNFSOeZp1BOcuXO/csYkCy Ey5we7iwNSzKAEGIxF97DJGMcncaWb/QOTbTDCqOw4MRENBO9T0HG5qfuDkH31qJvNPI L5XxoakhGvm2sgI6Z6npqW7MbjCKWbF7hA2ILWe9EqcEXyLq7Ax+fboT/PvLHoj16baC v7NF0kbEpG/LIAKakeN5l7UKfthf4m9oOGCBodQ05l3h9dQP8QK7eQ/nQBBqvSWWN1t/ 6VsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714078898; x=1714683698; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BOUkzV2LVdX3mnxLXz6ZHU19c3UxyUDWWYy8f/K3XGc=; b=DpALuUVAMXcfI1NZtmRSsTF1dRwKwnLWwEZlt/Jzu03RMNo6/g1//Kvu+sApwOIbDK 5Ct77sIsMeBP5UP/7SM0Dd5IZWm9m7g1ZoSMGGKkF+uXsLtS2/Glc92qUUxlv7ADZygl /DdbSuebq2nwZGvaXujnzqCCgjt7tCL245gpWiYedXx0GwSDxOdnpu4k8B4LheWXGFBQ 7flj0Un9Yza3bbTwSe9p27f2BaeDMiwmntiHg7RLpQuCCSpk2EJgZptE/VDIFUFG5kJH kRQ+kMLZ5j3kMWFQgzEZke3Scbmc9wJjjIZYvKMs/bhZomHZtKYp/8LfQpZrjavEym1G Iw6g== X-Gm-Message-State: AOJu0Yysgd+sKdz2YsYnDWCIRxNra7P0pwkUsocJ8URAOaPmDjvXKvY4 Nc7evdcaYrqKQvFXfA2x7xzsBU4lHCPwIgI3IfraM2mBNEDCCYuc7gzJvoLOb0PG/4Cbgp6cJkp MhcE= X-Google-Smtp-Source: AGHT+IERzBMGgH4YtuJjnLKN9ldvejXFRH54weXyNQk+Uwl+uEG2rnN+W8jAR/QeP+oBYVK3kYdn7A== X-Received: by 2002:a05:690c:3382:b0:61a:ae79:816a with SMTP id fl2-20020a05690c338200b0061aae79816amr768813ywb.31.1714078897930; Thu, 25 Apr 2024 14:01:37 -0700 (PDT) Received: from smtpclient.apple (c-98-252-216-111.hsd1.ga.comcast.net. [98.252.216.111]) by smtp.gmail.com with ESMTPSA id a6-20020a81bc06000000b0061440b93ce5sm3694346ywi.37.2024.04.25.14.01.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2024 14:01:36 -0700 (PDT) Message-ID: <9CE563A9-649F-43B4-AAA3-238BF8A7B311@newclarity.net> Content-Type: multipart/alternative; boundary="Apple-Mail=_669467DC-BD1D-48EA-9510-4B4C486BD08A" Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.8\)) Subject: Re: [PHP-DEV] [RFC] [Discussion] #[\Deprecated] attribute again v1.3 Date: Thu, 25 Apr 2024 17:01:35 -0400 In-Reply-To: Cc: internals@lists.php.net To: "Rowan Tommins [IMSoP]" References: <5814C522-CD23-4194-A344-1B57CC0A2511@rwec.co.uk> X-Mailer: Apple Mail (2.3696.120.41.1.8) From: mike@newclarity.net (Mike Schinkel) --Apple-Mail=_669467DC-BD1D-48EA-9510-4B4C486BD08A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Apr 25, 2024, at 11:28 AM, Rowan Tommins [IMSoP] = wrote: > If the project has no clear deprecation policy, the information is = useless anyway. Not true. Having standardized notation for deprecation would allow tooling to = analyze a codebase and determine if it contains deprecated code that = needs to be remediated without having to run the code with full = coverage. =20 Actually, `since:` doesn't go far enough because it doesn't indicate if = the deprecation throws warnings, throws errors, or just no longer works. = The latter two would be especially helpful when deciding if code = modifications are necessary before upgrading to a new version of PHP. -Mike= --Apple-Mail=_669467DC-BD1D-48EA-9510-4B4C486BD08A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
On = Apr 25, 2024, at 11:28 AM, Rowan Tommins [IMSoP] <imsop.php@rwec.co.uk> wrote:
If the project has no clear deprecation policy, the = information is useless anyway.

Not true.

Having standardized notation for deprecation would = allow tooling to analyze a codebase and determine if it contains = deprecated code that needs to be remediated without having to run the = code with full coverage.  

Actually, `since:` doesn't go far enough because = it doesn't indicate if the deprecation throws warnings, throws errors, = or just no longer works.  The latter two would be especially = helpful when deciding if code modifications are necessary before = upgrading to a new version of PHP.

-Mike
= --Apple-Mail=_669467DC-BD1D-48EA-9510-4B4C486BD08A--