Skip to content

Commit e93d6d9

Browse files
committed
Disable PEAR by default
Installation of PEAR can be enabled using --with-pear, but will through a deprecation warning during ./configure.
1 parent 5ee1188 commit e93d6d9

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

UPGRADING

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ PHP 7.4 UPGRADE NOTES
4747
function does not throw, so explicitly checking it is not necessary.
4848
RFC: http://php.net/manual/de/function.openssl-random-pseudo-bytes.php
4949

50+
- PEAR:
51+
. Installation of PEAR (including PECL) is no longer enabled by default. It
52+
can be explicitly enabled using --with-pear. This option is deprecated and
53+
may be removed in the future.
54+
5055
- PDO:
5156
. Attempting to serialize a PDO or PDOStatement instance will now generate
5257
an Exception rather than a PDOException, consistent with other internal
@@ -145,8 +150,8 @@ PHP 7.4 UPGRADE NOTES
145150
pattern will be interpreted as a string instead.
146151

147152
- LDAP:
148-
. ldap_control_paged_result_response and ldap_control_paged_result are deprecated.
149-
Pagination controls can be sent along with ldap_search instead.
153+
. ldap_control_paged_result_response and ldap_control_paged_result are
154+
deprecated. Pagination controls can be sent along with ldap_search instead.
150155

151156
========================================
152157
5. Changed Functions

configure.ac

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,8 +1136,7 @@ if test "$PHP_CLI" = "no"; then
11361136
fi
11371137

11381138
PHP_ARG_WITH(pear, [whether to install PEAR],
1139-
[ --with-pear=DIR Install PEAR in DIR @<:@PREFIX/lib/php@:>@
1140-
--without-pear Do not install PEAR], DEFAULT, yes)
1139+
[ --with-pear=DIR Install PEAR in DIR @<:@PREFIX/lib/php@:>@], no, yes)
11411140

11421141
if test "$PHP_PEAR" != "no"; then
11431142

@@ -1153,10 +1152,12 @@ if test "$PHP_PEAR" != "no"; then
11531152
AC_MSG_ERROR([$pear_error_msg])
11541153
fi
11551154

1155+
AC_MSG_WARN([The --with-pear option is deprecated])
1156+
11561157
install_pear="install-pear"
11571158
PEAR_INSTALLDIR=$PHP_PEAR
11581159

1159-
if test "$PHP_PEAR" = "DEFAULT" || test "$PHP_PEAR" = "yes"; then
1160+
if test "$PHP_PEAR" = "yes"; then
11601161
case $PHP_LAYOUT in
11611162
GNU) PEAR_INSTALLDIR=$datadir/pear;;
11621163
*) PEAR_INSTALLDIR=$libdir/php;;

0 commit comments

Comments
 (0)