aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2005-12-10 03:41:41 +0800
committerale <ale@FreeBSD.org>2005-12-10 03:41:41 +0800
commit64d7c22a188ebc9690c6908f3ad9e2ce700fac8c (patch)
tree73b330d5927b3d8b74060ddca63164c1989b6d1b /lang
parent7ef24e382bde059ef7d7396d80f1136a0aae090e (diff)
downloadfreebsd-ports-gnome-64d7c22a188ebc9690c6908f3ad9e2ce700fac8c.tar.gz
freebsd-ports-gnome-64d7c22a188ebc9690c6908f3ad9e2ce700fac8c.tar.zst
freebsd-ports-gnome-64d7c22a188ebc9690c6908f3ad9e2ce700fac8c.zip
Finally update to PHP 5.1.1 release! (And remove unsupported extensions)
Diffstat (limited to 'lang')
-rw-r--r--lang/php5/Makefile55
-rw-r--r--lang/php5/Makefile.ext70
-rw-r--r--lang/php5/Makefile.pear37
-rw-r--r--lang/php5/distinfo5
-rw-r--r--lang/php5/files/patch-Zend::zend.h8
-rw-r--r--lang/php5/files/patch-configure65
-rw-r--r--lang/php5/files/patch-ext_date_lib_timelib_structs.h11
-rw-r--r--lang/php5/files/patch-ext_standard_incomplete_class.c20
-rw-r--r--lang/php5/files/patch-ext_standard_php_incomplete_class.h22
-rw-r--r--lang/php5/files/patch-pear::Makefile.frag35
-rw-r--r--lang/php5/files/patch-pear::scripts::pearcmd.php21
-rw-r--r--lang/php5/files/patch-scripts::Makefile.frag25
-rw-r--r--lang/php5/pkg-message.pear8
-rw-r--r--lang/php5/pkg-plist27
-rw-r--r--lang/php5/pkg-plist.pear71
-rw-r--r--lang/php53/Makefile55
-rw-r--r--lang/php53/Makefile.ext70
-rw-r--r--lang/php53/Makefile.pear37
-rw-r--r--lang/php53/distinfo5
-rw-r--r--lang/php53/files/patch-Zend::zend.h8
-rw-r--r--lang/php53/files/patch-configure65
-rw-r--r--lang/php53/files/patch-ext_date_lib_timelib_structs.h11
-rw-r--r--lang/php53/files/patch-ext_standard_incomplete_class.c20
-rw-r--r--lang/php53/files/patch-ext_standard_php_incomplete_class.h22
-rw-r--r--lang/php53/files/patch-pear::Makefile.frag35
-rw-r--r--lang/php53/files/patch-pear::scripts::pearcmd.php21
-rw-r--r--lang/php53/files/patch-scripts::Makefile.frag25
-rw-r--r--lang/php53/pkg-message.pear8
-rw-r--r--lang/php53/pkg-plist27
-rw-r--r--lang/php53/pkg-plist.pear71
30 files changed, 170 insertions, 790 deletions
diff --git a/lang/php5/Makefile b/lang/php5/Makefile
index 77c8c1e5e793..d192cdc78474 100644
--- a/lang/php5/Makefile
+++ b/lang/php5/Makefile
@@ -6,8 +6,8 @@
#
PORTNAME= php5
-PORTVERSION= 5.0.5
-PORTREVISION?= 2
+PORTVERSION= 5.1.1
+PORTREVISION?= 0
CATEGORIES?= lang devel www
MASTER_SITES= ${MASTER_SITE_PHP:S,$,:release,} \
http://downloads.php.net/ilia/:rc \
@@ -24,7 +24,6 @@ LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
USE_BZIP2= yes
.if !defined(PKGNAMESUFFIX) || ${PKGNAMESUFFIX} == "-cgi" || ${PKGNAMESUFFIX} == "-cli"
GNU_CONFIGURE= yes
-USE_BISON= yes
USE_REINPLACE= yes
CONFIGURE_ARGS= --enable-versioning \
@@ -64,7 +63,9 @@ WITH_APACHE= yes
.if defined(WITH_APACHE)
PKGMESSAGE= ${PKGDIR}/pkg-message.mod
-APACHE_COMPAT= yes
+USE_APACHE= 1.3+
+MODULENAME= lib${PORTNAME}
+SHORTMODNAME= ${PORTNAME}
.endif
.if ${PHP_SAPI} == "cgi"
@@ -73,19 +74,10 @@ OPTIONS= REDIRECT "Enable force-cgi-redirect support" off \
FASTCGI "Enable fastcgi support" off \
PATHINFO "Enable path-info-check support" on
.endif
-.if defined(WITH_APACHE)
-.if defined(WITH_APACHE2)
-OPTIONS= APACHE2 "Use apache 2.x instead of apache 1.3.x" on
-.else
-OPTIONS= APACHE2 "Use apache 2.x instead of apache 1.3.x" off
-.endif
-.endif
OPTIONS+= DEBUG "Enable debug" off \
MULTIBYTE "Enable zend multibyte support" off \
IPV6 "Enable ipv6 support" on
-EXT_DIR= 20041030
-
CONFLICTS?= php5-cli-5* mod_php5-5* php5-cgi-5*
CONFLICTS+= php4-4* php4-cli-4* mod_php4-4* php4-cgi-4*
@@ -94,11 +86,13 @@ CONFIGURE_ARGS+=--disable-cli
.endif
MAN1= php-config.1 phpize.1
-.if ${PHP_SAPI} == "full" || ${PHP_SAPI} == "cli"
-PLIST_SUB+= CLI=""
+.if ${PHP_SAPI} != "mod"
+PLIST_SUB+= CLICGI=""
+.if ${PHP_SAPI} != "cgi"
MAN1+= php.1
+.endif
.else
-PLIST_SUB+= CLI="@comment "
+PLIST_SUB+= CLICGI="@comment "
.endif
.if defined(WITH_APACHE)
@@ -109,11 +103,6 @@ PLIST_SUB+= APACHE="@comment "
.if ${PHP_SAPI} == "cli"
CONFIGURE_ARGS+=--disable-cgi
-SAPI_FILE= "@comment "
-.endif
-
-.if ${PHP_SAPI} == "cgi"
-SAPI_FILE= bin/php
.endif
.include <bsd.port.pre.mk>
@@ -122,38 +111,21 @@ CONFIGURE_ENV= ac_cv_pthreads_lib=${PTHREAD_LIBS} \
ac_cv_pthreads_cflags=${PTHREAD_CFLAGS}
.if defined(WITH_APACHE)
-.if exists(${LOCALBASE}/include/apache2/httpd.h)
-WITH_APACHE2= yes
-APACHE_MPM!= ${APXS} -q MPM_NAME
-.endif
-.if defined(WITH_APACHE2)
-APACHE_MPM?= ${WITH_MPM}
-APACHE_PORT= www/apache20
+.if ${APACHE_VERSION} > 13
CONFIGURE_ARGS+=--with-apxs2=${APXS}
-SAPI_FILE= libexec/apache2/libphp5.so
-.if ${APACHE_MPM} == "worker"
-EXT_DIR:= ${EXT_DIR}-zts
-.endif
.else
-APACHE_PORT?= www/apache13
CONFIGURE_ARGS+=--with-apxs=${APXS}
-SAPI_FILE= libexec/apache/libphp5.so
.endif
-BUILD_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT}
-RUN_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT}
.endif
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=--enable-debug
-EXT_DIR:= ${EXT_DIR}-debug
.endif
.if defined(WITH_MULTIBYTE)
CONFIGURE_ARGS+=--enable-zend-multibyte
.endif
-PLIST_SUB+= SAPI_FILE=${SAPI_FILE}
-
.if ${OSVERSION} < 400014 || defined(WITHOUT_IPV6)
CONFIGURE_ARGS+=--disable-ipv6
.endif
@@ -195,7 +167,6 @@ pre-configure:
post-build:
@${ECHO_CMD} "PHP_VER=5" > ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_VERSION=${PORTVERSION}" >> ${WRKDIR}/php.conf
- @${ECHO_CMD} "PHP_EXT_DIR=${EXT_DIR}" >> ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_PORT=\$${PORTSDIR}/${PHP_PORT}" >> ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_SAPI=${PHP_SAPI}" >> ${WRKDIR}/php.conf
@@ -209,10 +180,6 @@ post-install:
.endif
.else
-.if ${PKGNAMESUFFIX} == "-pear"
-.include "${MASTERDIR}/Makefile.pear"
-.else
.include "${MASTERDIR}/Makefile.ext"
.endif
-.endif
.include <bsd.port.post.mk>
diff --git a/lang/php5/Makefile.ext b/lang/php5/Makefile.ext
index b4afef087967..c59f4d3c035f 100644
--- a/lang/php5/Makefile.ext
+++ b/lang/php5/Makefile.ext
@@ -56,14 +56,6 @@ PHP_HEADER_DIRS= libcdb libflatfile libinifile
CONFIGURE_ARGS+=--enable-dbase
.endif
-.if ${PHP_MODNAME} == "dbx"
-CONFIGURE_ARGS+=--enable-dbx
-.endif
-
-.if ${PHP_MODNAME} == "dio"
-CONFIGURE_ARGS+=--enable-dio
-.endif
-
.if ${PHP_MODNAME} == "dom"
CONFIGURE_ARGS+=--enable-dom \
--with-libxml-dir=${LOCALBASE}
@@ -83,7 +75,11 @@ CONFIGURE_ARGS+=--enable-filepro
.endif
.if ${PHP_MODNAME} == "ftp"
-CONFIGURE_ARGS+=--enable-ftp
+CONFIGURE_ARGS+=--enable-ftp \
+ --with-openssl-dir=${OPENSSLBASE}
+
+LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
+USE_OPENSSL= yes
.endif
.if ${PHP_MODNAME} == "gd"
@@ -169,16 +165,6 @@ CONFIGURE_ARGS+=--with-mcrypt=${LOCALBASE}
USE_AUTOTOOLS= libltdl:15
.endif
-.if ${PHP_MODNAME} == "mcve"
-LIB_DEPENDS+= mcve.3:${PORTSDIR}/devel/libmcve
-
-CONFIGURE_ARGS+=--with-mcve=${LOCALBASE} \
- --with-openssl-dir=${OPENSSLBASE}
-
-LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
-USE_OPENSSL= yes
-.endif
-
.if ${PHP_MODNAME} == "mhash"
LIB_DEPENDS+= mhash.2:${PORTSDIR}/security/mhash
@@ -191,12 +177,6 @@ LIB_DEPENDS+= ming.3:${PORTSDIR}/graphics/ming
CONFIGURE_ARGS+=--with-ming=${LOCALBASE}
.endif
-.if ${PHP_MODNAME} == "mnogosearch"
-LIB_DEPENDS+= udmsearch.1:${PORTSDIR}/www/mnogosearch31
-
-CONFIGURE_ARGS+=--with-mnogosearch=${LOCALBASE}
-.endif
-
.if ${PHP_MODNAME} == "mssql"
LIB_DEPENDS+= sybdb.5:${PORTSDIR}/databases/freetds-msdblib
@@ -236,12 +216,6 @@ LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
USE_OPENSSL= yes
.endif
-.if ${PHP_MODNAME} == "oracle"
-BUILD_DEPENDS+= ${LOCALBASE}/oracle7/lib/libcore3.a:${PORTSDIR}/databases/oracle7-client
-
-CONFIGURE_ARGS+=--with-oracle=${LOCALBASE}/oracle7
-.endif
-
.if ${PHP_MODNAME} == "pcntl"
CONFIGURE_ARGS+=--enable-pcntl
.endif
@@ -373,27 +347,35 @@ CONFIGURE_ARGS+=--enable-xml \
USE_GNOME= libxml2
.endif
-.if ${PHP_MODNAME} == "xmlrpc"
-LIB_DEPENDS+= expat.5:${PORTSDIR}/textproc/expat2
+.if ${PHP_MODNAME} == "xmlreader"
+CONFIGURE_ARGS+=--with-xmlreader \
+ --with-libxml-dir=${LOCALBASE}
+
+USE_GNOME= libxml2
+
+USE_PHP= xml
+USE_PHP_BUILD= yes
+.endif
+.if ${PHP_MODNAME} == "xmlrpc"
CONFIGURE_ARGS+=--with-xmlrpc \
- --with-expat-dir=${LOCALBASE} \
+ --with-libxml-dir=${LOCALBASE} \
--with-iconv-dir=${LOCALBASE}
USE_ICONV= yes
+USE_GNOME= libxml2
PHP_HEADER_DIRS=libxmlrpc
+
+USE_PHP= xml
+USE_PHP_BUILD= yes
.endif
.if ${PHP_MODNAME} == "xsl"
CONFIGURE_ARGS+=--with-xsl=${LOCALBASE}
USE_GNOME= libxslt
-USE_PHP= dom
-.endif
-
-.if ${PHP_MODNAME} == "yp"
-CONFIGURE_ARGS+=--enable-yp
+USE_PHP= dom xml
.endif
.if ${PHP_MODNAME} == "zlib"
@@ -461,13 +443,9 @@ post-extract:
@${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4
.endif
-.if ${PHP_MODNAME} == "oracle"
-pre-configure:
- @cd ${WRKSRC}; \
- for lib in c3v6 client common core3 epc generic ncr nlsrtl3 sqlnet wrap; do \
- /usr/bin/ar x ${LOCALBASE}/oracle7/lib/lib$${lib}.a; \
- done; \
- /usr/bin/ar rcs liboracle.a *.o
+.if ${PHP_MODNAME} == "pcre"
+post-extract:
+ @${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4
.endif
.if ${PHP_MODNAME} == "snmp"
diff --git a/lang/php5/Makefile.pear b/lang/php5/Makefile.pear
deleted file mode 100644
index 8ba975ddab3f..000000000000
--- a/lang/php5/Makefile.pear
+++ /dev/null
@@ -1,37 +0,0 @@
-PORTREVISION= 1
-
-USE_GNOME= libxml2
-
-GNU_CONFIGURE= yes
-
-CONFIGURE_ARGS= --with-layout=GNU \
- --disable-cgi \
- --disable-all \
- --with-pcre-regex=yes \
- --enable-xml \
- --enable-libxml \
- --with-libxml-dir=${LOCALBASE} \
- --with-zlib-dir=/usr \
- --with-pear
-
-NO_BUILD= yes
-
-INSTALL_TARGET= install-pear
-
-USE_PHP= pcre xml
-WANT_PHP_SCR= yes
-DEFAULT_PHP_VER=5
-BROKEN_WITH_PHP=4
-
-.include <bsd.port.pre.mk>
-
-post-patch:
- @${SED} "s|%%PREFIX%%|${PREFIX}|g" \
- ${WRKSRC}/pear/scripts/pearcmd.php > ${WRKSRC}/pear/scripts/pear
-
-post-install:
- @${INSTALL_SCRIPT} ${WRKSRC}/pear/scripts/pear ${PREFIX}/bin
- @${MKDIR} ${PREFIX}/lib/php/pear/.registry
- @${TOUCH} ${PREFIX}/lib/php/pear/.filemap
- @${TOUCH} ${PREFIX}/lib/php/pear/.lock
- @${SED} "s|\$${LOCALBASE}|${LOCALBASE}|g;s|\$${PREFIX}|${PREFIX}|g" < ${PKGMESSAGE}
diff --git a/lang/php5/distinfo b/lang/php5/distinfo
index 5877d94312bb..238205cbbe25 100644
--- a/lang/php5/distinfo
+++ b/lang/php5/distinfo
@@ -1,2 +1,3 @@
-MD5 (php-5.0.5.tar.bz2) = b5d4ca75bbb11ee5b830fa67213d9f7f
-SIZE (php-5.0.5.tar.bz2) = 4895556
+MD5 (php-5.1.1.tar.bz2) = 70a7c90de182d1a1901c390b844153c7
+SHA256 (php-5.1.1.tar.bz2) = 29fee6733868019bc702f7a2b54d95bd9d20d01fc9e9e6681f3d32f50b5f28cd
+SIZE (php-5.1.1.tar.bz2) = 6149470
diff --git a/lang/php5/files/patch-Zend::zend.h b/lang/php5/files/patch-Zend::zend.h
index 701f6a556f56..49d678719636 100644
--- a/lang/php5/files/patch-Zend::zend.h
+++ b/lang/php5/files/patch-Zend::zend.h
@@ -1,11 +1,11 @@
---- Zend/zend.h.orig Thu Aug 25 19:41:08 2005
-+++ Zend/zend.h Wed Nov 16 09:30:03 2005
+--- Zend/zend.h.orig Tue Nov 15 14:35:22 2005
++++ Zend/zend.h Fri Nov 25 09:31:48 2005
@@ -178,7 +178,7 @@
#endif
--#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32)) && !(defined(ZTS) && defined(NETWARE)) && !(defined(ZTS) && defined(HPUX)) && !defined(__darwin__) && !defined(__APPLE__)
-+#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32)) && !(defined(ZTS) && defined(NETWARE)) && !(defined(ZTS) && defined(HPUX)) && !defined(__darwin__) && !defined(__APPLE__) && !(defined(ZTS) && defined(__FreeBSD__))
+-#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32)) && !(defined(ZTS) && defined(NETWARE)) && !(defined(ZTS) && defined(HPUX)) && !defined(DARWIN)
++#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32)) && !(defined(ZTS) && defined(NETWARE)) && !(defined(ZTS) && defined(HPUX)) && !defined(DARWIN) && !(defined(ZTS) && defined(__FreeBSD__))
# define do_alloca(p) alloca(p)
# define free_alloca(p)
#else
diff --git a/lang/php5/files/patch-configure b/lang/php5/files/patch-configure
index ecd4454dd4f3..1ac8ec049e63 100644
--- a/lang/php5/files/patch-configure
+++ b/lang/php5/files/patch-configure
@@ -1,6 +1,6 @@
---- configure.orig Mon Sep 5 13:16:17 2005
-+++ configure Fri Oct 14 07:48:01 2005
-@@ -2890,7 +2890,7 @@
+--- configure.orig Wed Nov 23 22:37:49 2005
++++ configure Fri Nov 25 10:39:54 2005
+@@ -3654,7 +3654,7 @@
save_LIBS=$LIBS
if test -n "$ac_cv_pthreads_lib"; then
@@ -9,7 +9,7 @@
fi
if test -n "$ac_cv_pthreads_cflags"; then
-@@ -11285,7 +11285,7 @@
+@@ -12074,7 +12074,7 @@
if test "$enable_maintainer_zts" = "yes"; then
if test -n "$ac_cv_pthreads_lib"; then
@@ -18,7 +18,7 @@
fi
if test -n "$ac_cv_pthreads_cflags"; then
-@@ -11302,8 +11302,6 @@
+@@ -12091,8 +12091,6 @@
case $host_alias in
*solaris*)
PTHREAD_FLAGS="-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT";;
@@ -27,51 +27,7 @@
*linux*)
PTHREAD_FLAGS=-D_REENTRANT;;
*aix*)
-@@ -88384,6 +88382,10 @@
- #line 88385 "configure"
- #include "confdefs.h"
-
-+#if HAVE_UNISTD_H
-+#include <unistd.h>
-+#endif
-+
- #if HAVE_CRYPT_H
- #include <crypt.h>
- #endif
-@@ -88441,6 +88443,10 @@
- #line 88442 "configure"
- #include "confdefs.h"
-
-+#if HAVE_UNISTD_H
-+#include <unistd.h>
-+#endif
-+
- #if HAVE_CRYPT_H
- #include <crypt.h>
- #endif
-@@ -88498,6 +88504,10 @@
- #line 88499 "configure"
- #include "confdefs.h"
-
-+#if HAVE_UNISTD_H
-+#include <unistd.h>
-+#endif
-+
- #if HAVE_CRYPT_H
- #include <crypt.h>
- #endif
-@@ -88593,6 +88603,10 @@
- #line 88594 "configure"
- #include "confdefs.h"
-
-+#if HAVE_UNISTD_H
-+#include <unistd.h>
-+#endif
-+
- #if HAVE_CRYPT_H
- #include <crypt.h>
- #endif
-@@ -101571,7 +101585,7 @@
+@@ -100076,7 +100074,7 @@
save_LIBS=$LIBS
if test -n "$ac_cv_pthreads_lib"; then
@@ -80,3 +36,12 @@
fi
if test -n "$ac_cv_pthreads_cflags"; then
+@@ -108808,7 +108806,7 @@
+
+
+
+- for header_file in Zend/ TSRM/ include/ main/ main/streams/ regex/; do
++ for header_file in Zend/ TSRM/ main/ main/streams/ regex/ ext/spl/; do
+
+
+ unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
diff --git a/lang/php5/files/patch-ext_date_lib_timelib_structs.h b/lang/php5/files/patch-ext_date_lib_timelib_structs.h
new file mode 100644
index 000000000000..c85468abc7f0
--- /dev/null
+++ b/lang/php5/files/patch-ext_date_lib_timelib_structs.h
@@ -0,0 +1,11 @@
+--- ext/date/lib/timelib_structs.h.orig Wed Dec 7 11:11:39 2005
++++ ext/date/lib/timelib_structs.h Wed Dec 7 11:11:53 2005
+@@ -21,7 +21,7 @@
+ #ifndef __TIMELIB_STRUCTS_H__
+ #define __TIMELIB_STRUCTS_H__
+
+-#include <timelib_config.h>
++#include "timelib_config.h"
+
+ #ifdef HAVE_SYS_TYPES_H
+ #include <sys/types.h>
diff --git a/lang/php5/files/patch-ext_standard_incomplete_class.c b/lang/php5/files/patch-ext_standard_incomplete_class.c
deleted file mode 100644
index f4b5c40e4c3b..000000000000
--- a/lang/php5/files/patch-ext_standard_incomplete_class.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- ext/standard/incomplete_class.c.orig Fri Oct 14 07:49:19 2005
-+++ ext/standard/incomplete_class.c Fri Oct 14 07:50:12 2005
-@@ -122,7 +122,7 @@
-
- /* {{{ php_lookup_class_name
- */
--char *php_lookup_class_name(zval *object, size_t *nlen)
-+char *php_lookup_class_name(zval *object, zend_uint *nlen)
- {
- zval **val;
- char *retval = NULL;
-@@ -144,7 +144,7 @@
-
- /* {{{ php_store_class_name
- */
--void php_store_class_name(zval *object, const char *name, size_t len)
-+void php_store_class_name(zval *object, const char *name, zend_uint len)
- {
- zval *val;
- TSRMLS_FETCH();
diff --git a/lang/php5/files/patch-ext_standard_php_incomplete_class.h b/lang/php5/files/patch-ext_standard_php_incomplete_class.h
deleted file mode 100644
index 936036a1b565..000000000000
--- a/lang/php5/files/patch-ext_standard_php_incomplete_class.h
+++ /dev/null
@@ -1,22 +0,0 @@
---- ext/standard/php_incomplete_class.h.orig Fri Oct 14 07:50:22 2005
-+++ ext/standard/php_incomplete_class.h Fri Oct 14 07:50:59 2005
-@@ -42,7 +42,7 @@
-
- #define PHP_CLASS_ATTRIBUTES \
- char *class_name; \
-- size_t name_len; \
-+ zend_uint name_len; \
- zend_bool free_class_name = 0; \
- zend_bool incomplete_class = 0
-
-@@ -55,8 +55,8 @@
-
- zend_class_entry *php_create_incomplete_class(TSRMLS_D);
-
--char *php_lookup_class_name(zval *object, size_t *nlen);
--void php_store_class_name(zval *object, const char *name, size_t len);
-+char *php_lookup_class_name(zval *object, zend_uint *nlen);
-+void php_store_class_name(zval *object, const char *name, zend_uint len);
-
- #ifdef __cplusplus
- };
diff --git a/lang/php5/files/patch-pear::Makefile.frag b/lang/php5/files/patch-pear::Makefile.frag
deleted file mode 100644
index 41b525b28a7c..000000000000
--- a/lang/php5/files/patch-pear::Makefile.frag
+++ /dev/null
@@ -1,35 +0,0 @@
---- pear/Makefile.frag.orig Tue Sep 2 03:30:13 2003
-+++ pear/Makefile.frag Thu Apr 22 23:52:40 2004
-@@ -1,6 +1,7 @@
- # -*- makefile -*-
-
- peardir=$(PEAR_INSTALLDIR)
-+XML_RPC_ver=1.4.0
-
- # Skip all php.ini files altogether
- PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dsafe_mode=0
-@@ -13,10 +14,18 @@
-
- install-pear:
- @echo "Installing PEAR environment: $(INSTALL_ROOT)$(peardir)/"
-- @if $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \
-- $(MAKE) -s install-pear-installer install-pear-packages; \
-- else \
-- cat $(srcdir)/install-pear.txt; \
-- exit 5; \
-- fi
-+ @$(mkinstalldirs) $(INSTALL_ROOT)$(peardir)/bootstrap \
-+ $(INSTALL_ROOT)$(peardir)/bootstrap/Archive \
-+ $(INSTALL_ROOT)$(peardir)/bootstrap/Console \
-+ $(INSTALL_ROOT)$(peardir)/bootstrap/XML \
-+ $(INSTALL_ROOT)$(peardir)/bootstrap/XML/RPC
-+ @cp $(srcdir)/PEAR.php $(srcdir)/System.php \
-+ $(INSTALL_ROOT)$(peardir)/bootstrap
-+ @cp $(srcdir)/Archive/*.php $(INSTALL_ROOT)$(peardir)/bootstrap/Archive
-+ @cp $(srcdir)/Console/*.php $(INSTALL_ROOT)$(peardir)/bootstrap/Console
-+ @cp -R $(srcdir)/OS $(INSTALL_ROOT)$(peardir)/bootstrap
-+ @cp -R $(srcdir)/PEAR $(INSTALL_ROOT)$(peardir)/bootstrap
-+ @tar xf $(srcdir)/packages/XML_RPC-$(XML_RPC_ver).tar
-+ @cp XML_RPC-$(XML_RPC_ver)/RPC.php $(INSTALL_ROOT)$(peardir)/bootstrap/XML
-+ @cp XML_RPC-$(XML_RPC_ver)/Server.php $(INSTALL_ROOT)$(peardir)/bootstrap/XML/RPC
-
diff --git a/lang/php5/files/patch-pear::scripts::pearcmd.php b/lang/php5/files/patch-pear::scripts::pearcmd.php
deleted file mode 100644
index e0898d9ed08a..000000000000
--- a/lang/php5/files/patch-pear::scripts::pearcmd.php
+++ /dev/null
@@ -1,21 +0,0 @@
---- pear/scripts/pearcmd.php.orig Mon Mar 28 18:46:06 2005
-+++ pear/scripts/pearcmd.php Wed Nov 16 09:30:03 2005
-@@ -1,3 +1,4 @@
-+#!%%PREFIX%%/bin/php -nq
- <?php
- //
- // +----------------------------------------------------------------------+
-@@ -24,9 +25,10 @@
- /**
- * @nodep Gtk
- */
--if ('@include_path@' != '@'.'include_path'.'@') {
-- ini_set('include_path', '@include_path@');
--}
-+dl('pcre.so');
-+dl('xml.so');
-+ini_set('include_path', '%%PREFIX%%/share/pear:%%PREFIX%%/share/pear/bootstrap');
-+ini_set('memory_limit', '16M');
- ini_set('allow_url_fopen', true);
- if (!ini_get('safe_mode')) {
- @set_time_limit(0);
diff --git a/lang/php5/files/patch-scripts::Makefile.frag b/lang/php5/files/patch-scripts::Makefile.frag
deleted file mode 100644
index f3200a0dc3c2..000000000000
--- a/lang/php5/files/patch-scripts::Makefile.frag
+++ /dev/null
@@ -1,25 +0,0 @@
---- scripts/Makefile.frag.orig Tue Jun 7 23:57:06 2005
-+++ scripts/Makefile.frag Wed Sep 7 17:50:23 2005
-@@ -34,21 +34,12 @@
- / \
- Zend/ \
- TSRM/ \
-- include/ \
- main/ \
- main/streams/ \
- regex/ \
-- ext/iconv/ \
- ext/libxml/ \
- ext/standard/ \
-- ext/session/ \
-- ext/dom/xml_common.h \
-- ext/xml/ \
-- ext/xml/expat/ \
-- ext/mbstring/ \
-- ext/mbstring/libmbfl/ \
-- ext/mbstring/libmbfl/mbfl/ \
-- ext/sqlite/libsqlite/src/sqlite.h
-+ ext/spl/
-
- install-headers:
- -@for i in $(HEADER_DIRS); do \
diff --git a/lang/php5/pkg-message.pear b/lang/php5/pkg-message.pear
deleted file mode 100644
index 53827dba00cc..000000000000
--- a/lang/php5/pkg-message.pear
+++ /dev/null
@@ -1,8 +0,0 @@
-*********************************************************
-
-To use PEAR you have to add the correct include path into
-your ${LOCALBASE}/etc/php.ini configuration file, like:
-
-include_path = ".:${PREFIX}/share/pear"
-
-*********************************************************
diff --git a/lang/php5/pkg-plist b/lang/php5/pkg-plist
index 494aeea29722..e66190e08479 100644
--- a/lang/php5/pkg-plist
+++ b/lang/php5/pkg-plist
@@ -1,4 +1,4 @@
-%%CLI%%bin/php
+%%CLICGI%%bin/php
bin/php-config
bin/phpize
etc/php.conf
@@ -8,7 +8,6 @@ include/php/TSRM/TSRM.h
include/php/TSRM/acconfig.h
include/php/TSRM/readdir.h
include/php/TSRM/tsrm_config.h
-include/php/TSRM/tsrm_config.nw.h
include/php/TSRM/tsrm_config.w32.h
include/php/TSRM/tsrm_config_common.h
include/php/TSRM/tsrm_nw.h
@@ -65,14 +64,23 @@ include/php/Zend/zend_strtod.h
include/php/Zend/zend_ts_hash.h
include/php/Zend/zend_types.h
include/php/Zend/zend_variables.h
-include/php/acconfig.h
+include/php/Zend/zend_vm.h
+include/php/Zend/zend_vm_def.h
+include/php/Zend/zend_vm_execute.h
+include/php/Zend/zend_vm_opcodes.h
+include/php/ext/date/lib/timelib.h
+include/php/ext/date/lib/timelib_config.h
+include/php/ext/date/lib/timelib_structs.h
+include/php/ext/date/php_date.h
include/php/ext/libxml/php_libxml.h
include/php/ext/spl/php_spl.h
include/php/ext/spl/spl_array.h
include/php/ext/spl/spl_directory.h
include/php/ext/spl/spl_engine.h
+include/php/ext/spl/spl_exceptions.h
include/php/ext/spl/spl_functions.h
include/php/ext/spl/spl_iterators.h
+include/php/ext/spl/spl_observer.h
include/php/ext/spl/spl_sxe.h
include/php/ext/standard/base64.h
include/php/ext/standard/basic_functions.h
@@ -96,7 +104,6 @@ include/php/ext/standard/md5.h
include/php/ext/standard/microtime.h
include/php/ext/standard/pack.h
include/php/ext/standard/pageinfo.h
-include/php/ext/standard/parsedate.h
include/php/ext/standard/php_array.h
include/php/ext/standard/php_assert.h
include/php/ext/standard/php_browscap.h
@@ -115,7 +122,6 @@ include/php/ext/standard/php_link.h
include/php/ext/standard/php_mail.h
include/php/ext/standard/php_math.h
include/php/ext/standard/php_metaphone.h
-include/php/ext/standard/php_parsedate.h
include/php/ext/standard/php_rand.h
include/php/ext/standard/php_smart_str.h
include/php/ext/standard/php_smart_str_public.h
@@ -142,14 +148,12 @@ include/php/main/SAPI.h
include/php/main/build-defs.h
include/php/main/config.w32.h
include/php/main/fopen_wrappers.h
-include/php/main/internal_functions_registry.h
include/php/main/logos.h
include/php/main/php.h
include/php/main/php3_compat.h
include/php/main/php_compat.h
include/php/main/php_config.h
include/php/main/php_content_types.h
-include/php/main/php_embed.h
include/php/main/php_globals.h
include/php/main/php_ini.h
include/php/main/php_logos.h
@@ -192,13 +196,16 @@ lib/php/build/libtool.m4
lib/php/build/ltmain.sh
lib/php/build/mkdep.awk
lib/php/build/phpize.m4
+lib/php/build/run-tests.php
lib/php/build/scan_makefile_in.awk
lib/php/build/shtool
-%%SAPI_FILE%%
-%%APACHE%%@exec %D/sbin/apxs -e -a -n php5 %f
-%%APACHE%%@unexec %D/sbin/apxs -e -A -n php5 %f
+%%APACHE%%%%APACHEMODDIR%%/%%AP_MODULE%%
+%%APACHE%%@exec %D/sbin/apxs -e -a -n %%AP_NAME%% %f
+%%APACHE%%@unexec %D/sbin/apxs -e -A -n %%AP_NAME%% %f
@dirrm include/php/TSRM
@dirrm include/php/Zend
+@dirrm include/php/ext/date/lib
+@dirrm include/php/ext/date
@dirrm include/php/ext/libxml
@dirrm include/php/ext/spl
@dirrm include/php/ext/standard
diff --git a/lang/php5/pkg-plist.pear b/lang/php5/pkg-plist.pear
deleted file mode 100644
index f6ae741953ca..000000000000
--- a/lang/php5/pkg-plist.pear
+++ /dev/null
@@ -1,71 +0,0 @@
-bin/pear
-@exec mkdir -p %D/lib/php/pear/.channels/.alias
-@exec mkdir -p %D/lib/php/pear/.registry/.channel.__uri
-@exec mkdir -p %D/lib/php/pear/.registry/.channel.pecl.php.net
-@exec touch %D/lib/php/pear/.channels/.alias/pear.txt
-@exec touch %D/lib/php/pear/.channels/.alias/pecl.txt
-@exec touch %D/lib/php/pear/.channels/__uri.reg
-@exec touch %D/lib/php/pear/.channels/pear.php.net.reg
-@exec touch %D/lib/php/pear/.channels/pecl.php.net.reg
-@exec touch %D/lib/php/pear/.depdb
-@exec touch %D/lib/php/pear/.depdblock
-@exec touch %D/lib/php/pear/.filemap
-@exec touch %D/lib/php/pear/.lock
-share/pear/bootstrap/Archive/Tar.php
-share/pear/bootstrap/PEAR.php
-share/pear/bootstrap/System.php
-share/pear/bootstrap/Console/Getopt.php
-share/pear/bootstrap/OS/Guess.php
-share/pear/bootstrap/PEAR/Autoloader.php
-share/pear/bootstrap/PEAR/Builder.php
-share/pear/bootstrap/PEAR/Command.php
-share/pear/bootstrap/PEAR/Command/Auth.php
-share/pear/bootstrap/PEAR/Command/Build.php
-share/pear/bootstrap/PEAR/Command/Common.php
-share/pear/bootstrap/PEAR/Command/Config.php
-share/pear/bootstrap/PEAR/Command/Install.php
-share/pear/bootstrap/PEAR/Command/Mirror.php
-share/pear/bootstrap/PEAR/Command/Package.php
-share/pear/bootstrap/PEAR/Command/Registry.php
-share/pear/bootstrap/PEAR/Command/Remote.php
-share/pear/bootstrap/PEAR/Common.php
-share/pear/bootstrap/PEAR/Config.php
-share/pear/bootstrap/PEAR/Dependency.php
-share/pear/bootstrap/PEAR/DependencyDB.php
-share/pear/bootstrap/PEAR/Downloader.php
-share/pear/bootstrap/PEAR/ErrorStack.php
-share/pear/bootstrap/PEAR/Exception.php
-share/pear/bootstrap/PEAR/Frontend/CLI.php
-share/pear/bootstrap/PEAR/Installer.php
-share/pear/bootstrap/PEAR/Packager.php
-share/pear/bootstrap/PEAR/Registry.php
-share/pear/bootstrap/PEAR/Remote.php
-share/pear/bootstrap/PEAR/RunTest.php
-share/pear/bootstrap/XML/RPC.php
-share/pear/bootstrap/XML/RPC/Server.php
-@unexec rm %D/lib/php/pear/.channels/.alias/pear.txt 2> /dev/null || true
-@unexec rm %D/lib/php/pear/.channels/.alias/pecl.txt 2> /dev/null || true
-@unexec rm %D/lib/php/pear/.channels/__uri.reg 2> /dev/null || true
-@unexec rm %D/lib/php/pear/.channels/pear.php.net.reg 2> /dev/null || true
-@unexec rm %D/lib/php/pear/.channels/pecl.php.net.reg 2> /dev/null || true
-@unexec rm %D/lib/php/pear/.depdb 2> /dev/null || true
-@unexec rm %D/lib/php/pear/.depdblock 2> /dev/null || true
-@unexec rm %D/lib/php/pear/.filemap 2> /dev/null || true
-@unexec rm %D/lib/php/pear/.lock 2> /dev/null || true
-@unexec rmdir %D/lib/php/pear/.channels/.alias 2> /dev/null || true
-@unexec rmdir %D/lib/php/pear/.channels 2> /dev/null || true
-@unexec rmdir %D/lib/php/pear/.registry/.channel.__uri 2> /dev/null || true
-@unexec rmdir %D/lib/php/pear/.registry/.channel.pecl.php.net 2> /dev/null || true
-@unexec rmdir %D/lib/php/pear/.registry 2> /dev/null || true
-@unexec rmdir %D/lib/php/pear 2> /dev/null || true
-@unexec rmdir %D/lib/php 2> /dev/null || true
-@dirrm share/pear/bootstrap/Archive
-@dirrm share/pear/bootstrap/Console
-@dirrm share/pear/bootstrap/OS
-@dirrm share/pear/bootstrap/PEAR/Command
-@dirrm share/pear/bootstrap/PEAR/Frontend
-@dirrm share/pear/bootstrap/PEAR
-@dirrm share/pear/bootstrap/XML/RPC
-@dirrm share/pear/bootstrap/XML
-@dirrm share/pear/bootstrap
-@unexec rmdir %D/share/pear 2> /dev/null || true
diff --git a/lang/php53/Makefile b/lang/php53/Makefile
index 77c8c1e5e793..d192cdc78474 100644
--- a/lang/php53/Makefile
+++ b/lang/php53/Makefile
@@ -6,8 +6,8 @@
#
PORTNAME= php5
-PORTVERSION= 5.0.5
-PORTREVISION?= 2
+PORTVERSION= 5.1.1
+PORTREVISION?= 0
CATEGORIES?= lang devel www
MASTER_SITES= ${MASTER_SITE_PHP:S,$,:release,} \
http://downloads.php.net/ilia/:rc \
@@ -24,7 +24,6 @@ LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
USE_BZIP2= yes
.if !defined(PKGNAMESUFFIX) || ${PKGNAMESUFFIX} == "-cgi" || ${PKGNAMESUFFIX} == "-cli"
GNU_CONFIGURE= yes
-USE_BISON= yes
USE_REINPLACE= yes
CONFIGURE_ARGS= --enable-versioning \
@@ -64,7 +63,9 @@ WITH_APACHE= yes
.if defined(WITH_APACHE)
PKGMESSAGE= ${PKGDIR}/pkg-message.mod
-APACHE_COMPAT= yes
+USE_APACHE= 1.3+
+MODULENAME= lib${PORTNAME}
+SHORTMODNAME= ${PORTNAME}
.endif
.if ${PHP_SAPI} == "cgi"
@@ -73,19 +74,10 @@ OPTIONS= REDIRECT "Enable force-cgi-redirect support" off \
FASTCGI "Enable fastcgi support" off \
PATHINFO "Enable path-info-check support" on
.endif
-.if defined(WITH_APACHE)
-.if defined(WITH_APACHE2)
-OPTIONS= APACHE2 "Use apache 2.x instead of apache 1.3.x" on
-.else
-OPTIONS= APACHE2 "Use apache 2.x instead of apache 1.3.x" off
-.endif
-.endif
OPTIONS+= DEBUG "Enable debug" off \
MULTIBYTE "Enable zend multibyte support" off \
IPV6 "Enable ipv6 support" on
-EXT_DIR= 20041030
-
CONFLICTS?= php5-cli-5* mod_php5-5* php5-cgi-5*
CONFLICTS+= php4-4* php4-cli-4* mod_php4-4* php4-cgi-4*
@@ -94,11 +86,13 @@ CONFIGURE_ARGS+=--disable-cli
.endif
MAN1= php-config.1 phpize.1
-.if ${PHP_SAPI} == "full" || ${PHP_SAPI} == "cli"
-PLIST_SUB+= CLI=""
+.if ${PHP_SAPI} != "mod"
+PLIST_SUB+= CLICGI=""
+.if ${PHP_SAPI} != "cgi"
MAN1+= php.1
+.endif
.else
-PLIST_SUB+= CLI="@comment "
+PLIST_SUB+= CLICGI="@comment "
.endif
.if defined(WITH_APACHE)
@@ -109,11 +103,6 @@ PLIST_SUB+= APACHE="@comment "
.if ${PHP_SAPI} == "cli"
CONFIGURE_ARGS+=--disable-cgi
-SAPI_FILE= "@comment "
-.endif
-
-.if ${PHP_SAPI} == "cgi"
-SAPI_FILE= bin/php
.endif
.include <bsd.port.pre.mk>
@@ -122,38 +111,21 @@ CONFIGURE_ENV= ac_cv_pthreads_lib=${PTHREAD_LIBS} \
ac_cv_pthreads_cflags=${PTHREAD_CFLAGS}
.if defined(WITH_APACHE)
-.if exists(${LOCALBASE}/include/apache2/httpd.h)
-WITH_APACHE2= yes
-APACHE_MPM!= ${APXS} -q MPM_NAME
-.endif
-.if defined(WITH_APACHE2)
-APACHE_MPM?= ${WITH_MPM}
-APACHE_PORT= www/apache20
+.if ${APACHE_VERSION} > 13
CONFIGURE_ARGS+=--with-apxs2=${APXS}
-SAPI_FILE= libexec/apache2/libphp5.so
-.if ${APACHE_MPM} == "worker"
-EXT_DIR:= ${EXT_DIR}-zts
-.endif
.else
-APACHE_PORT?= www/apache13
CONFIGURE_ARGS+=--with-apxs=${APXS}
-SAPI_FILE= libexec/apache/libphp5.so
.endif
-BUILD_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT}
-RUN_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT}
.endif
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=--enable-debug
-EXT_DIR:= ${EXT_DIR}-debug
.endif
.if defined(WITH_MULTIBYTE)
CONFIGURE_ARGS+=--enable-zend-multibyte
.endif
-PLIST_SUB+= SAPI_FILE=${SAPI_FILE}
-
.if ${OSVERSION} < 400014 || defined(WITHOUT_IPV6)
CONFIGURE_ARGS+=--disable-ipv6
.endif
@@ -195,7 +167,6 @@ pre-configure:
post-build:
@${ECHO_CMD} "PHP_VER=5" > ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_VERSION=${PORTVERSION}" >> ${WRKDIR}/php.conf
- @${ECHO_CMD} "PHP_EXT_DIR=${EXT_DIR}" >> ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_PORT=\$${PORTSDIR}/${PHP_PORT}" >> ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_SAPI=${PHP_SAPI}" >> ${WRKDIR}/php.conf
@@ -209,10 +180,6 @@ post-install:
.endif
.else
-.if ${PKGNAMESUFFIX} == "-pear"
-.include "${MASTERDIR}/Makefile.pear"
-.else
.include "${MASTERDIR}/Makefile.ext"
.endif
-.endif
.include <bsd.port.post.mk>
diff --git a/lang/php53/Makefile.ext b/lang/php53/Makefile.ext
index b4afef087967..c59f4d3c035f 100644
--- a/lang/php53/Makefile.ext
+++ b/lang/php53/Makefile.ext
@@ -56,14 +56,6 @@ PHP_HEADER_DIRS= libcdb libflatfile libinifile
CONFIGURE_ARGS+=--enable-dbase
.endif
-.if ${PHP_MODNAME} == "dbx"
-CONFIGURE_ARGS+=--enable-dbx
-.endif
-
-.if ${PHP_MODNAME} == "dio"
-CONFIGURE_ARGS+=--enable-dio
-.endif
-
.if ${PHP_MODNAME} == "dom"
CONFIGURE_ARGS+=--enable-dom \
--with-libxml-dir=${LOCALBASE}
@@ -83,7 +75,11 @@ CONFIGURE_ARGS+=--enable-filepro
.endif
.if ${PHP_MODNAME} == "ftp"
-CONFIGURE_ARGS+=--enable-ftp
+CONFIGURE_ARGS+=--enable-ftp \
+ --with-openssl-dir=${OPENSSLBASE}
+
+LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
+USE_OPENSSL= yes
.endif
.if ${PHP_MODNAME} == "gd"
@@ -169,16 +165,6 @@ CONFIGURE_ARGS+=--with-mcrypt=${LOCALBASE}
USE_AUTOTOOLS= libltdl:15
.endif
-.if ${PHP_MODNAME} == "mcve"
-LIB_DEPENDS+= mcve.3:${PORTSDIR}/devel/libmcve
-
-CONFIGURE_ARGS+=--with-mcve=${LOCALBASE} \
- --with-openssl-dir=${OPENSSLBASE}
-
-LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
-USE_OPENSSL= yes
-.endif
-
.if ${PHP_MODNAME} == "mhash"
LIB_DEPENDS+= mhash.2:${PORTSDIR}/security/mhash
@@ -191,12 +177,6 @@ LIB_DEPENDS+= ming.3:${PORTSDIR}/graphics/ming
CONFIGURE_ARGS+=--with-ming=${LOCALBASE}
.endif
-.if ${PHP_MODNAME} == "mnogosearch"
-LIB_DEPENDS+= udmsearch.1:${PORTSDIR}/www/mnogosearch31
-
-CONFIGURE_ARGS+=--with-mnogosearch=${LOCALBASE}
-.endif
-
.if ${PHP_MODNAME} == "mssql"
LIB_DEPENDS+= sybdb.5:${PORTSDIR}/databases/freetds-msdblib
@@ -236,12 +216,6 @@ LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
USE_OPENSSL= yes
.endif
-.if ${PHP_MODNAME} == "oracle"
-BUILD_DEPENDS+= ${LOCALBASE}/oracle7/lib/libcore3.a:${PORTSDIR}/databases/oracle7-client
-
-CONFIGURE_ARGS+=--with-oracle=${LOCALBASE}/oracle7
-.endif
-
.if ${PHP_MODNAME} == "pcntl"
CONFIGURE_ARGS+=--enable-pcntl
.endif
@@ -373,27 +347,35 @@ CONFIGURE_ARGS+=--enable-xml \
USE_GNOME= libxml2
.endif
-.if ${PHP_MODNAME} == "xmlrpc"
-LIB_DEPENDS+= expat.5:${PORTSDIR}/textproc/expat2
+.if ${PHP_MODNAME} == "xmlreader"
+CONFIGURE_ARGS+=--with-xmlreader \
+ --with-libxml-dir=${LOCALBASE}
+
+USE_GNOME= libxml2
+
+USE_PHP= xml
+USE_PHP_BUILD= yes
+.endif
+.if ${PHP_MODNAME} == "xmlrpc"
CONFIGURE_ARGS+=--with-xmlrpc \
- --with-expat-dir=${LOCALBASE} \
+ --with-libxml-dir=${LOCALBASE} \
--with-iconv-dir=${LOCALBASE}
USE_ICONV= yes
+USE_GNOME= libxml2
PHP_HEADER_DIRS=libxmlrpc
+
+USE_PHP= xml
+USE_PHP_BUILD= yes
.endif
.if ${PHP_MODNAME} == "xsl"
CONFIGURE_ARGS+=--with-xsl=${LOCALBASE}
USE_GNOME= libxslt
-USE_PHP= dom
-.endif
-
-.if ${PHP_MODNAME} == "yp"
-CONFIGURE_ARGS+=--enable-yp
+USE_PHP= dom xml
.endif
.if ${PHP_MODNAME} == "zlib"
@@ -461,13 +443,9 @@ post-extract:
@${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4
.endif
-.if ${PHP_MODNAME} == "oracle"
-pre-configure:
- @cd ${WRKSRC}; \
- for lib in c3v6 client common core3 epc generic ncr nlsrtl3 sqlnet wrap; do \
- /usr/bin/ar x ${LOCALBASE}/oracle7/lib/lib$${lib}.a; \
- done; \
- /usr/bin/ar rcs liboracle.a *.o
+.if ${PHP_MODNAME} == "pcre"
+post-extract:
+ @${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4
.endif
.if ${PHP_MODNAME} == "snmp"
diff --git a/lang/php53/Makefile.pear b/lang/php53/Makefile.pear
deleted file mode 100644
index 8ba975ddab3f..000000000000
--- a/lang/php53/Makefile.pear
+++ /dev/null
@@ -1,37 +0,0 @@
-PORTREVISION= 1
-
-USE_GNOME= libxml2
-
-GNU_CONFIGURE= yes
-
-CONFIGURE_ARGS= --with-layout=GNU \
- --disable-cgi \
- --disable-all \
- --with-pcre-regex=yes \
- --enable-xml \
- --enable-libxml \
- --with-libxml-dir=${LOCALBASE} \
- --with-zlib-dir=/usr \
- --with-pear
-
-NO_BUILD= yes
-
-INSTALL_TARGET= install-pear
-
-USE_PHP= pcre xml
-WANT_PHP_SCR= yes
-DEFAULT_PHP_VER=5
-BROKEN_WITH_PHP=4
-
-.include <bsd.port.pre.mk>
-
-post-patch:
- @${SED} "s|%%PREFIX%%|${PREFIX}|g" \
- ${WRKSRC}/pear/scripts/pearcmd.php > ${WRKSRC}/pear/scripts/pear
-
-post-install:
- @${INSTALL_SCRIPT} ${WRKSRC}/pear/scripts/pear ${PREFIX}/bin
- @${MKDIR} ${PREFIX}/lib/php/pear/.registry
- @${TOUCH} ${PREFIX}/lib/php/pear/.filemap
- @${TOUCH} ${PREFIX}/lib/php/pear/.lock
- @${SED} "s|\$${LOCALBASE}|${LOCALBASE}|g;s|\$${PREFIX}|${PREFIX}|g" < ${PKGMESSAGE}
diff --git a/lang/php53/distinfo b/lang/php53/distinfo
index 5877d94312bb..238205cbbe25 100644
--- a/lang/php53/distinfo
+++ b/lang/php53/distinfo
@@ -1,2 +1,3 @@
-MD5 (php-5.0.5.tar.bz2) = b5d4ca75bbb11ee5b830fa67213d9f7f
-SIZE (php-5.0.5.tar.bz2) = 4895556
+MD5 (php-5.1.1.tar.bz2) = 70a7c90de182d1a1901c390b844153c7
+SHA256 (php-5.1.1.tar.bz2) = 29fee6733868019bc702f7a2b54d95bd9d20d01fc9e9e6681f3d32f50b5f28cd
+SIZE (php-5.1.1.tar.bz2) = 6149470
diff --git a/lang/php53/files/patch-Zend::zend.h b/lang/php53/files/patch-Zend::zend.h
index 701f6a556f56..49d678719636 100644
--- a/lang/php53/files/patch-Zend::zend.h
+++ b/lang/php53/files/patch-Zend::zend.h
@@ -1,11 +1,11 @@
---- Zend/zend.h.orig Thu Aug 25 19:41:08 2005
-+++ Zend/zend.h Wed Nov 16 09:30:03 2005
+--- Zend/zend.h.orig Tue Nov 15 14:35:22 2005
++++ Zend/zend.h Fri Nov 25 09:31:48 2005
@@ -178,7 +178,7 @@
#endif
--#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32)) && !(defined(ZTS) && defined(NETWARE)) && !(defined(ZTS) && defined(HPUX)) && !defined(__darwin__) && !defined(__APPLE__)
-+#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32)) && !(defined(ZTS) && defined(NETWARE)) && !(defined(ZTS) && defined(HPUX)) && !defined(__darwin__) && !defined(__APPLE__) && !(defined(ZTS) && defined(__FreeBSD__))
+-#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32)) && !(defined(ZTS) && defined(NETWARE)) && !(defined(ZTS) && defined(HPUX)) && !defined(DARWIN)
++#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32)) && !(defined(ZTS) && defined(NETWARE)) && !(defined(ZTS) && defined(HPUX)) && !defined(DARWIN) && !(defined(ZTS) && defined(__FreeBSD__))
# define do_alloca(p) alloca(p)
# define free_alloca(p)
#else
diff --git a/lang/php53/files/patch-configure b/lang/php53/files/patch-configure
index ecd4454dd4f3..1ac8ec049e63 100644
--- a/lang/php53/files/patch-configure
+++ b/lang/php53/files/patch-configure
@@ -1,6 +1,6 @@
---- configure.orig Mon Sep 5 13:16:17 2005
-+++ configure Fri Oct 14 07:48:01 2005
-@@ -2890,7 +2890,7 @@
+--- configure.orig Wed Nov 23 22:37:49 2005
++++ configure Fri Nov 25 10:39:54 2005
+@@ -3654,7 +3654,7 @@
save_LIBS=$LIBS
if test -n "$ac_cv_pthreads_lib"; then
@@ -9,7 +9,7 @@
fi
if test -n "$ac_cv_pthreads_cflags"; then
-@@ -11285,7 +11285,7 @@
+@@ -12074,7 +12074,7 @@
if test "$enable_maintainer_zts" = "yes"; then
if test -n "$ac_cv_pthreads_lib"; then
@@ -18,7 +18,7 @@
fi
if test -n "$ac_cv_pthreads_cflags"; then
-@@ -11302,8 +11302,6 @@
+@@ -12091,8 +12091,6 @@
case $host_alias in
*solaris*)
PTHREAD_FLAGS="-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT";;
@@ -27,51 +27,7 @@
*linux*)
PTHREAD_FLAGS=-D_REENTRANT;;
*aix*)
-@@ -88384,6 +88382,10 @@
- #line 88385 "configure"
- #include "confdefs.h"
-
-+#if HAVE_UNISTD_H
-+#include <unistd.h>
-+#endif
-+
- #if HAVE_CRYPT_H
- #include <crypt.h>
- #endif
-@@ -88441,6 +88443,10 @@
- #line 88442 "configure"
- #include "confdefs.h"
-
-+#if HAVE_UNISTD_H
-+#include <unistd.h>
-+#endif
-+
- #if HAVE_CRYPT_H
- #include <crypt.h>
- #endif
-@@ -88498,6 +88504,10 @@
- #line 88499 "configure"
- #include "confdefs.h"
-
-+#if HAVE_UNISTD_H
-+#include <unistd.h>
-+#endif
-+
- #if HAVE_CRYPT_H
- #include <crypt.h>
- #endif
-@@ -88593,6 +88603,10 @@
- #line 88594 "configure"
- #include "confdefs.h"
-
-+#if HAVE_UNISTD_H
-+#include <unistd.h>
-+#endif
-+
- #if HAVE_CRYPT_H
- #include <crypt.h>
- #endif
-@@ -101571,7 +101585,7 @@
+@@ -100076,7 +100074,7 @@
save_LIBS=$LIBS
if test -n "$ac_cv_pthreads_lib"; then
@@ -80,3 +36,12 @@
fi
if test -n "$ac_cv_pthreads_cflags"; then
+@@ -108808,7 +108806,7 @@
+
+
+
+- for header_file in Zend/ TSRM/ include/ main/ main/streams/ regex/; do
++ for header_file in Zend/ TSRM/ main/ main/streams/ regex/ ext/spl/; do
+
+
+ unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
diff --git a/lang/php53/files/patch-ext_date_lib_timelib_structs.h b/lang/php53/files/patch-ext_date_lib_timelib_structs.h
new file mode 100644
index 000000000000..c85468abc7f0
--- /dev/null
+++ b/lang/php53/files/patch-ext_date_lib_timelib_structs.h
@@ -0,0 +1,11 @@
+--- ext/date/lib/timelib_structs.h.orig Wed Dec 7 11:11:39 2005
++++ ext/date/lib/timelib_structs.h Wed Dec 7 11:11:53 2005
+@@ -21,7 +21,7 @@
+ #ifndef __TIMELIB_STRUCTS_H__
+ #define __TIMELIB_STRUCTS_H__
+
+-#include <timelib_config.h>
++#include "timelib_config.h"
+
+ #ifdef HAVE_SYS_TYPES_H
+ #include <sys/types.h>
diff --git a/lang/php53/files/patch-ext_standard_incomplete_class.c b/lang/php53/files/patch-ext_standard_incomplete_class.c
deleted file mode 100644
index f4b5c40e4c3b..000000000000
--- a/lang/php53/files/patch-ext_standard_incomplete_class.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- ext/standard/incomplete_class.c.orig Fri Oct 14 07:49:19 2005
-+++ ext/standard/incomplete_class.c Fri Oct 14 07:50:12 2005
-@@ -122,7 +122,7 @@
-
- /* {{{ php_lookup_class_name
- */
--char *php_lookup_class_name(zval *object, size_t *nlen)
-+char *php_lookup_class_name(zval *object, zend_uint *nlen)
- {
- zval **val;
- char *retval = NULL;
-@@ -144,7 +144,7 @@
-
- /* {{{ php_store_class_name
- */
--void php_store_class_name(zval *object, const char *name, size_t len)
-+void php_store_class_name(zval *object, const char *name, zend_uint len)
- {
- zval *val;
- TSRMLS_FETCH();
diff --git a/lang/php53/files/patch-ext_standard_php_incomplete_class.h b/lang/php53/files/patch-ext_standard_php_incomplete_class.h
deleted file mode 100644
index 936036a1b565..000000000000
--- a/lang/php53/files/patch-ext_standard_php_incomplete_class.h
+++ /dev/null
@@ -1,22 +0,0 @@
---- ext/standard/php_incomplete_class.h.orig Fri Oct 14 07:50:22 2005
-+++ ext/standard/php_incomplete_class.h Fri Oct 14 07:50:59 2005
-@@ -42,7 +42,7 @@
-
- #define PHP_CLASS_ATTRIBUTES \
- char *class_name; \
-- size_t name_len; \
-+ zend_uint name_len; \
- zend_bool free_class_name = 0; \
- zend_bool incomplete_class = 0
-
-@@ -55,8 +55,8 @@
-
- zend_class_entry *php_create_incomplete_class(TSRMLS_D);
-
--char *php_lookup_class_name(zval *object, size_t *nlen);
--void php_store_class_name(zval *object, const char *name, size_t len);
-+char *php_lookup_class_name(zval *object, zend_uint *nlen);
-+void php_store_class_name(zval *object, const char *name, zend_uint len);
-
- #ifdef __cplusplus
- };
diff --git a/lang/php53/files/patch-pear::Makefile.frag b/lang/php53/files/patch-pear::Makefile.frag
deleted file mode 100644
index 41b525b28a7c..000000000000
--- a/lang/php53/files/patch-pear::Makefile.frag
+++ /dev/null
@@ -1,35 +0,0 @@
---- pear/Makefile.frag.orig Tue Sep 2 03:30:13 2003
-+++ pear/Makefile.frag Thu Apr 22 23:52:40 2004
-@@ -1,6 +1,7 @@
- # -*- makefile -*-
-
- peardir=$(PEAR_INSTALLDIR)
-+XML_RPC_ver=1.4.0
-
- # Skip all php.ini files altogether
- PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dsafe_mode=0
-@@ -13,10 +14,18 @@
-
- install-pear:
- @echo "Installing PEAR environment: $(INSTALL_ROOT)$(peardir)/"
-- @if $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \
-- $(MAKE) -s install-pear-installer install-pear-packages; \
-- else \
-- cat $(srcdir)/install-pear.txt; \
-- exit 5; \
-- fi
-+ @$(mkinstalldirs) $(INSTALL_ROOT)$(peardir)/bootstrap \
-+ $(INSTALL_ROOT)$(peardir)/bootstrap/Archive \
-+ $(INSTALL_ROOT)$(peardir)/bootstrap/Console \
-+ $(INSTALL_ROOT)$(peardir)/bootstrap/XML \
-+ $(INSTALL_ROOT)$(peardir)/bootstrap/XML/RPC
-+ @cp $(srcdir)/PEAR.php $(srcdir)/System.php \
-+ $(INSTALL_ROOT)$(peardir)/bootstrap
-+ @cp $(srcdir)/Archive/*.php $(INSTALL_ROOT)$(peardir)/bootstrap/Archive
-+ @cp $(srcdir)/Console/*.php $(INSTALL_ROOT)$(peardir)/bootstrap/Console
-+ @cp -R $(srcdir)/OS $(INSTALL_ROOT)$(peardir)/bootstrap
-+ @cp -R $(srcdir)/PEAR $(INSTALL_ROOT)$(peardir)/bootstrap
-+ @tar xf $(srcdir)/packages/XML_RPC-$(XML_RPC_ver).tar
-+ @cp XML_RPC-$(XML_RPC_ver)/RPC.php $(INSTALL_ROOT)$(peardir)/bootstrap/XML
-+ @cp XML_RPC-$(XML_RPC_ver)/Server.php $(INSTALL_ROOT)$(peardir)/bootstrap/XML/RPC
-
diff --git a/lang/php53/files/patch-pear::scripts::pearcmd.php b/lang/php53/files/patch-pear::scripts::pearcmd.php
deleted file mode 100644
index e0898d9ed08a..000000000000
--- a/lang/php53/files/patch-pear::scripts::pearcmd.php
+++ /dev/null
@@ -1,21 +0,0 @@
---- pear/scripts/pearcmd.php.orig Mon Mar 28 18:46:06 2005
-+++ pear/scripts/pearcmd.php Wed Nov 16 09:30:03 2005
-@@ -1,3 +1,4 @@
-+#!%%PREFIX%%/bin/php -nq
- <?php
- //
- // +----------------------------------------------------------------------+
-@@ -24,9 +25,10 @@
- /**
- * @nodep Gtk
- */
--if ('@include_path@' != '@'.'include_path'.'@') {
-- ini_set('include_path', '@include_path@');
--}
-+dl('pcre.so');
-+dl('xml.so');
-+ini_set('include_path', '%%PREFIX%%/share/pear:%%PREFIX%%/share/pear/bootstrap');
-+ini_set('memory_limit', '16M');
- ini_set('allow_url_fopen', true);
- if (!ini_get('safe_mode')) {
- @set_time_limit(0);
diff --git a/lang/php53/files/patch-scripts::Makefile.frag b/lang/php53/files/patch-scripts::Makefile.frag
deleted file mode 100644
index f3200a0dc3c2..000000000000
--- a/lang/php53/files/patch-scripts::Makefile.frag
+++ /dev/null
@@ -1,25 +0,0 @@
---- scripts/Makefile.frag.orig Tue Jun 7 23:57:06 2005
-+++ scripts/Makefile.frag Wed Sep 7 17:50:23 2005
-@@ -34,21 +34,12 @@
- / \
- Zend/ \
- TSRM/ \
-- include/ \
- main/ \
- main/streams/ \
- regex/ \
-- ext/iconv/ \
- ext/libxml/ \
- ext/standard/ \
-- ext/session/ \
-- ext/dom/xml_common.h \
-- ext/xml/ \
-- ext/xml/expat/ \
-- ext/mbstring/ \
-- ext/mbstring/libmbfl/ \
-- ext/mbstring/libmbfl/mbfl/ \
-- ext/sqlite/libsqlite/src/sqlite.h
-+ ext/spl/
-
- install-headers:
- -@for i in $(HEADER_DIRS); do \
diff --git a/lang/php53/pkg-message.pear b/lang/php53/pkg-message.pear
deleted file mode 100644
index 53827dba00cc..000000000000
--- a/lang/php53/pkg-message.pear
+++ /dev/null
@@ -1,8 +0,0 @@
-*********************************************************
-
-To use PEAR you have to add the correct include path into
-your ${LOCALBASE}/etc/php.ini configuration file, like:
-
-include_path = ".:${PREFIX}/share/pear"
-
-*********************************************************
diff --git a/lang/php53/pkg-plist b/lang/php53/pkg-plist
index 494aeea29722..e66190e08479 100644
--- a/lang/php53/pkg-plist
+++ b/lang/php53/pkg-plist
@@ -1,4 +1,4 @@
-%%CLI%%bin/php
+%%CLICGI%%bin/php
bin/php-config
bin/phpize
etc/php.conf
@@ -8,7 +8,6 @@ include/php/TSRM/TSRM.h
include/php/TSRM/acconfig.h
include/php/TSRM/readdir.h
include/php/TSRM/tsrm_config.h
-include/php/TSRM/tsrm_config.nw.h
include/php/TSRM/tsrm_config.w32.h
include/php/TSRM/tsrm_config_common.h
include/php/TSRM/tsrm_nw.h
@@ -65,14 +64,23 @@ include/php/Zend/zend_strtod.h
include/php/Zend/zend_ts_hash.h
include/php/Zend/zend_types.h
include/php/Zend/zend_variables.h
-include/php/acconfig.h
+include/php/Zend/zend_vm.h
+include/php/Zend/zend_vm_def.h
+include/php/Zend/zend_vm_execute.h
+include/php/Zend/zend_vm_opcodes.h
+include/php/ext/date/lib/timelib.h
+include/php/ext/date/lib/timelib_config.h
+include/php/ext/date/lib/timelib_structs.h
+include/php/ext/date/php_date.h
include/php/ext/libxml/php_libxml.h
include/php/ext/spl/php_spl.h
include/php/ext/spl/spl_array.h
include/php/ext/spl/spl_directory.h
include/php/ext/spl/spl_engine.h
+include/php/ext/spl/spl_exceptions.h
include/php/ext/spl/spl_functions.h
include/php/ext/spl/spl_iterators.h
+include/php/ext/spl/spl_observer.h
include/php/ext/spl/spl_sxe.h
include/php/ext/standard/base64.h
include/php/ext/standard/basic_functions.h
@@ -96,7 +104,6 @@ include/php/ext/standard/md5.h
include/php/ext/standard/microtime.h
include/php/ext/standard/pack.h
include/php/ext/standard/pageinfo.h
-include/php/ext/standard/parsedate.h
include/php/ext/standard/php_array.h
include/php/ext/standard/php_assert.h
include/php/ext/standard/php_browscap.h
@@ -115,7 +122,6 @@ include/php/ext/standard/php_link.h
include/php/ext/standard/php_mail.h
include/php/ext/standard/php_math.h
include/php/ext/standard/php_metaphone.h
-include/php/ext/standard/php_parsedate.h
include/php/ext/standard/php_rand.h
include/php/ext/standard/php_smart_str.h
include/php/ext/standard/php_smart_str_public.h
@@ -142,14 +148,12 @@ include/php/main/SAPI.h
include/php/main/build-defs.h
include/php/main/config.w32.h
include/php/main/fopen_wrappers.h
-include/php/main/internal_functions_registry.h
include/php/main/logos.h
include/php/main/php.h
include/php/main/php3_compat.h
include/php/main/php_compat.h
include/php/main/php_config.h
include/php/main/php_content_types.h
-include/php/main/php_embed.h
include/php/main/php_globals.h
include/php/main/php_ini.h
include/php/main/php_logos.h
@@ -192,13 +196,16 @@ lib/php/build/libtool.m4
lib/php/build/ltmain.sh
lib/php/build/mkdep.awk
lib/php/build/phpize.m4
+lib/php/build/run-tests.php
lib/php/build/scan_makefile_in.awk
lib/php/build/shtool
-%%SAPI_FILE%%
-%%APACHE%%@exec %D/sbin/apxs -e -a -n php5 %f
-%%APACHE%%@unexec %D/sbin/apxs -e -A -n php5 %f
+%%APACHE%%%%APACHEMODDIR%%/%%AP_MODULE%%
+%%APACHE%%@exec %D/sbin/apxs -e -a -n %%AP_NAME%% %f
+%%APACHE%%@unexec %D/sbin/apxs -e -A -n %%AP_NAME%% %f
@dirrm include/php/TSRM
@dirrm include/php/Zend
+@dirrm include/php/ext/date/lib
+@dirrm include/php/ext/date
@dirrm include/php/ext/libxml
@dirrm include/php/ext/spl
@dirrm include/php/ext/standard
diff --git a/lang/php53/pkg-plist.pear b/lang/php53/pkg-plist.pear
deleted file mode 100644
index f6ae741953ca..000000000000
--- a/lang/php53/pkg-plist.pear
+++ /dev/null
@@ -1,71 +0,0 @@
-bin/pear
-@exec mkdir -p %D/lib/php/pear/.channels/.alias
-@exec mkdir -p %D/lib/php/pear/.registry/.channel.__uri
-@exec mkdir -p %D/lib/php/pear/.registry/.channel.pecl.php.net
-@exec touch %D/lib/php/pear/.channels/.alias/pear.txt
-@exec touch %D/lib/php/pear/.channels/.alias/pecl.txt
-@exec touch %D/lib/php/pear/.channels/__uri.reg
-@exec touch %D/lib/php/pear/.channels/pear.php.net.reg
-@exec touch %D/lib/php/pear/.channels/pecl.php.net.reg
-@exec touch %D/lib/php/pear/.depdb
-@exec touch %D/lib/php/pear/.depdblock
-@exec touch %D/lib/php/pear/.filemap
-@exec touch %D/lib/php/pear/.lock
-share/pear/bootstrap/Archive/Tar.php
-share/pear/bootstrap/PEAR.php
-share/pear/bootstrap/System.php
-share/pear/bootstrap/Console/Getopt.php
-share/pear/bootstrap/OS/Guess.php
-share/pear/bootstrap/PEAR/Autoloader.php
-share/pear/bootstrap/PEAR/Builder.php
-share/pear/bootstrap/PEAR/Command.php
-share/pear/bootstrap/PEAR/Command/Auth.php
-share/pear/bootstrap/PEAR/Command/Build.php
-share/pear/bootstrap/PEAR/Command/Common.php
-share/pear/bootstrap/PEAR/Command/Config.php
-share/pear/bootstrap/PEAR/Command/Install.php
-share/pear/bootstrap/PEAR/Command/Mirror.php
-share/pear/bootstrap/PEAR/Command/Package.php
-share/pear/bootstrap/PEAR/Command/Registry.php
-share/pear/bootstrap/PEAR/Command/Remote.php
-share/pear/bootstrap/PEAR/Common.php
-share/pear/bootstrap/PEAR/Config.php
-share/pear/bootstrap/PEAR/Dependency.php
-share/pear/bootstrap/PEAR/DependencyDB.php
-share/pear/bootstrap/PEAR/Downloader.php
-share/pear/bootstrap/PEAR/ErrorStack.php
-share/pear/bootstrap/PEAR/Exception.php
-share/pear/bootstrap/PEAR/Frontend/CLI.php
-share/pear/bootstrap/PEAR/Installer.php
-share/pear/bootstrap/PEAR/Packager.php
-share/pear/bootstrap/PEAR/Registry.php
-share/pear/bootstrap/PEAR/Remote.php
-share/pear/bootstrap/PEAR/RunTest.php
-share/pear/bootstrap/XML/RPC.php
-share/pear/bootstrap/XML/RPC/Server.php
-@unexec rm %D/lib/php/pear/.channels/.alias/pear.txt 2> /dev/null || true
-@unexec rm %D/lib/php/pear/.channels/.alias/pecl.txt 2> /dev/null || true
-@unexec rm %D/lib/php/pear/.channels/__uri.reg 2> /dev/null || true
-@unexec rm %D/lib/php/pear/.channels/pear.php.net.reg 2> /dev/null || true
-@unexec rm %D/lib/php/pear/.channels/pecl.php.net.reg 2> /dev/null || true
-@unexec rm %D/lib/php/pear/.depdb 2> /dev/null || true
-@unexec rm %D/lib/php/pear/.depdblock 2> /dev/null || true
-@unexec rm %D/lib/php/pear/.filemap 2> /dev/null || true
-@unexec rm %D/lib/php/pear/.lock 2> /dev/null || true
-@unexec rmdir %D/lib/php/pear/.channels/.alias 2> /dev/null || true
-@unexec rmdir %D/lib/php/pear/.channels 2> /dev/null || true
-@unexec rmdir %D/lib/php/pear/.registry/.channel.__uri 2> /dev/null || true
-@unexec rmdir %D/lib/php/pear/.registry/.channel.pecl.php.net 2> /dev/null || true
-@unexec rmdir %D/lib/php/pear/.registry 2> /dev/null || true
-@unexec rmdir %D/lib/php/pear 2> /dev/null || true
-@unexec rmdir %D/lib/php 2> /dev/null || true
-@dirrm share/pear/bootstrap/Archive
-@dirrm share/pear/bootstrap/Console
-@dirrm share/pear/bootstrap/OS
-@dirrm share/pear/bootstrap/PEAR/Command
-@dirrm share/pear/bootstrap/PEAR/Frontend
-@dirrm share/pear/bootstrap/PEAR
-@dirrm share/pear/bootstrap/XML/RPC
-@dirrm share/pear/bootstrap/XML
-@dirrm share/pear/bootstrap
-@unexec rmdir %D/share/pear 2> /dev/null || true