From 7ae4316294610d310044301b03fba4b94eacbe56 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 15 Apr 2026 11:45:42 +0200 Subject: add deprecation message using patch from https://github.com/pear/pear-core/pull/169 --- 169.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 169.patch (limited to '169.patch') diff --git a/169.patch b/169.patch new file mode 100644 index 0000000..1c28ac4 --- /dev/null +++ b/169.patch @@ -0,0 +1,25 @@ +From ca70e73c90e121b4f448a5dc102092215a04467c Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Wed, 15 Apr 2026 11:11:15 +0200 +Subject: [PATCH] add message about PECL deprecated by PIE + +--- + scripts/pearcmd.php | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/scripts/pearcmd.php b/scripts/pearcmd.php +index 290435333..4203a638d 100644 +--- a/scripts/pearcmd.php ++++ b/scripts/pearcmd.php +@@ -360,6 +360,11 @@ function usage($error = null, $helpsubject = null) + "Type \"$progname help \" to get the help ". + "for the specified command."; + } ++ if (PEAR_RUNTYPE === 'pecl'&& in_array($helpsubject, array(null, 'install', 'upgrade'))) { ++ $put .= ++ "\nNotice: PECL is now deprecated. " . ++ "PHP Installer for Extensions (PIE) is the replacement for PECL."; ++ } + fputs($stdout, "$put\n"); + fclose($stdout); + -- cgit