[php-pear] - only enable needed extensions for pear/pecl commands (posix, xml) - fix typo in pear man page

Remi Collet remi at fedoraproject.org
Wed Apr 9 14:04:01 UTC 2014


commit 19429b4d74ae90e2065c996972bfcd7f6ff0a72d
Author: Remi Collet <remi at fedoraproject.org>
Date:   Wed Apr 9 16:03:48 2014 +0200

    - only enable needed extensions for pear/pecl commands (posix, xml)
    - fix typo in pear man page

 pear.sh       |    5 ++++-
 pecl.sh       |    5 ++++-
 php-pear.spec |    6 +++++-
 3 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/pear.sh b/pear.sh
index 36be863..aa2c1a9 100644
--- a/pear.sh
+++ b/pear.sh
@@ -1,5 +1,8 @@
 #!/bin/sh
-exec /usr/bin/php -C -q \
+exec /usr/bin/php -C \
+    -n \
+    -d extension=posix.so \
+    -d extension=xml.so \
     -d include_path=/usr/share/pear \
     -d date.timezone=UTC \
     -d output_buffering=1 \
diff --git a/pecl.sh b/pecl.sh
index 58cbdc5..7c56e2c 100644
--- a/pecl.sh
+++ b/pecl.sh
@@ -1,5 +1,8 @@
 #!/bin/sh
-exec /usr/bin/php -C -q \
+exec /usr/bin/php -C \
+    -n \
+    -d extension=posix.so \
+    -d extension=xml.so \
     -d include_path=/usr/share/pear \
     -d date.timezone=UTC \
     -d output_buffering=1 \
diff --git a/php-pear.spec b/php-pear.spec
index eb56869..95a6259 100644
--- a/php-pear.spec
+++ b/php-pear.spec
@@ -17,7 +17,7 @@
 Summary: PHP Extension and Application Repository framework
 Name: php-pear
 Version: 1.9.4
-Release: 24%{?dist}
+Release: 25%{?dist}
 Epoch: 1
 # PEAR, Archive_Tar, XML_Util are BSD
 # Console_Getopt is PHP
@@ -309,6 +309,10 @@ fi
 
 
 %changelog
+* Wed Apr  9 2014 Remi Collet <rcollet at redhat.com> 1:1.9.4-25
+- only enable needed extensions for pear/pecl commands
+- fix typo in pear man page
+
 * Tue Feb 11 2014 Remi Collet <rcollet at redhat.com> 1:1.9.4-24
 - Expand path in macros.pear
 - Install macros to /usr/lib/rpm/macros.d where available


More information about the scm-commits mailing list