com php-src: Disable PEAR by default: UPGRADING configure.ac
| From: | Nikita Popov | Date: | Mon, 11 Feb 2019 10:10:13 +0000 |
| Subject: | com php-src: Disable PEAR by default: UPGRADING configure.ac | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-104535@lists.php.net to get a copy of this message | ||
Commit: e93d6d97aab7a5de1f7b8dc750ca9d08214de8c4
Author: Nikita Popov <nikita.ppv@gmail.com> Fri, 1 Feb 2019 12:09:29 +0100
Parents: 5ee11887dfa9b3cb6972ed0f37537abb1cd56043
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e93d6d97aab7a5de1f7b8dc750ca9d08214de8c4
Log:
Disable PEAR by default
Installation of PEAR can be enabled using --with-pear, but will
through a deprecation warning during ./configure.
Changed paths:
M UPGRADING
M configure.ac
Diff:
diff --git a/UPGRADING b/UPGRADING
index 897cd6d..f1731a5 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -47,6 +47,11 @@ PHP 7.4 UPGRADE NOTES
function does not throw, so explicitly checking it is not necessary.
RFC: http://php.net/manual/de/function.openssl-random-pseudo-bytes.php
+- PEAR:
+ . Installation of PEAR (including PECL) is no longer enabled by default. It
+ can be explicitly enabled using --with-pear. This option is deprecated and
+ may be removed in the future.
+
- PDO:
. Attempting to serialize a PDO or PDOStatement instance will now generate
an Exception rather than a PDOException, consistent with other internal
@@ -145,8 +150,8 @@ PHP 7.4 UPGRADE NOTES
pattern will be interpreted as a string instead.
- LDAP:
- . ldap_control_paged_result_response and ldap_control_paged_result are deprecated.
- Pagination controls can be sent along with ldap_search instead.
+ . ldap_control_paged_result_response and ldap_control_paged_result are
+ deprecated. Pagination controls can be sent along with ldap_search instead.
========================================
5. Changed Functions
diff --git a/configure.ac b/configure.ac
index 3d95aba..ad110b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1136,8 +1136,7 @@ if test "$PHP_CLI" = "no"; then
fi
PHP_ARG_WITH(pear, [whether to install PEAR],
-[ --with-pear=DIR Install PEAR in DIR @<:@PREFIX/lib/php@:>@
- --without-pear Do not install PEAR], DEFAULT, yes)
+[ --with-pear=DIR Install PEAR in DIR @<:@PREFIX/lib/php@:>@], no, yes)
if test "$PHP_PEAR" != "no"; then
@@ -1153,10 +1152,12 @@ if test "$PHP_PEAR" != "no"; then
AC_MSG_ERROR([$pear_error_msg])
fi
+ AC_MSG_WARN([The --with-pear option is deprecated])
+
install_pear="install-pear"
PEAR_INSTALLDIR=$PHP_PEAR
- if test "$PHP_PEAR" = "DEFAULT" || test "$PHP_PEAR" =
"yes"; then
+ if test "$PHP_PEAR" = "yes"; then
case $PHP_LAYOUT in
GNU) PEAR_INSTALLDIR=$datadir/pear;;
*) PEAR_INSTALLDIR=$libdir/php;;