summaryrefslogtreecommitdiffstats
path: root/169.patch
blob: 1c28ac479753f7a5a42d3beeabea5b13eb960f33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From ca70e73c90e121b4f448a5dc102092215a04467c Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
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 <command>\" 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);