[128130] trunk/dports/lang
ryandesign at macports.org
ryandesign at macports.org
Thu Nov 13 21:02:56 PST 2014
Revision: 128130
https://trac.macports.org/changeset/128130
Author: ryandesign at macports.org
Date: 2014-11-13 21:02:56 -0800 (Thu, 13 Nov 2014)
Log Message:
-----------
php: bring php52 @5.2.17 into this port; resolves freetype-related build failure (#41864) and conflict with other php versions (#22668)
Modified Paths:
--------------
trunk/dports/lang/php/Portfile
Added Paths:
-----------
trunk/dports/lang/php/files/patch-php52-ext-gd-config.m4.diff
trunk/dports/lang/php/files/patch-php52-ext-gmp-gmp.c.diff
trunk/dports/lang/php/files/patch-php52-ext-pdo_oci-config.m4.diff
trunk/dports/lang/php/files/patch-php52-iODBC.diff
trunk/dports/lang/php/files/patch-php52-libxml-2.9.diff
trunk/dports/lang/php/files/patch-php52-pcre-8.30.diff
trunk/dports/lang/php/files/patch-php52-scripts-php-config.in.diff
trunk/dports/lang/php/files/patch-php52-unixODBC.diff
trunk/dports/lang/php/files/php52
Removed Paths:
-------------
trunk/dports/lang/php52/
Modified: trunk/dports/lang/php/Portfile
===================================================================
--- trunk/dports/lang/php/Portfile 2014-11-14 03:06:26 UTC (rev 128129)
+++ trunk/dports/lang/php/Portfile 2014-11-14 05:02:56 UTC (rev 128130)
@@ -21,7 +21,7 @@
scripting.
# The list of PHP branches this port provides.
-php.branches 5.3 5.4 5.5 5.6
+php.branches 5.2 5.3 5.4 5.5 5.6
# Fix for users specifying the subport name with the wrong case.
set subport [string tolower ${subport}]
@@ -59,6 +59,20 @@
# Remember to increment revision of ${php}-eaccelerator when updating version of ${php}.
switch ${subport_branch} {
+ 5.2 {
+ version 5.2.17
+ use_bzip2 yes
+ set suhosin_available yes
+ set suhosin_patch_version 5.2.16-0.9.7
+ set suhosin_patch suhosin-patch-${suhosin_patch_version}.patch.gz
+ checksums ${distname}${extract.suffix} \
+ md5 b27947f3045220faf16e4d9158cbfe13 \
+ rmd160 567fa8d718b93fb83a89494c83a8bec224ac99e9 \
+ sha256 e81beb13ec242ab700e56f366e9da52fd6cf18961d155b23304ca870e53f116c \
+ ${suhosin_patch} \
+ rmd160 b28b70faf136b3e04c5b483da0f4c2279378f43a \
+ sha256 aae115a318d80b3f32cedf876e7a8e4b932febb1b0c743c0b398003ebe122f91
+ }
5.3 {
version 5.3.29
use_bzip2 yes
@@ -106,8 +120,7 @@
# homepage http://qa.php.net/
# master_sites http://downloads.php.net/tyrael/
# use_xz yes
-# checksums ${distname}${extract.suffix} \
-# md5 0123456789 \
+# checksums md5 0123456789 \
# rmd160 0123456789 \
# sha256 0123456789
# livecheck.url ${homepage}
@@ -147,6 +160,12 @@
patch.pre_args -p1
patchfiles patch-${php}-scripts-php-config.in.diff
+ if {[vercmp ${branch} 5.2] <= 0} {
+ patchfiles-append \
+ patch-${php}-libxml-2.9.diff \
+ patch-${php}-pcre-8.30.diff
+ }
+
# https://trac.macports.org/ticket/31590
# Tested all subports (except oracle) and they built with clang-425. The reported failure was with Xcode 4.2.
# Xcode 4.3 may work, but leaving it blacklisted due to lack of testing
@@ -166,13 +185,11 @@
--enable-bcmath \
--enable-ctype \
--enable-dom \
- --enable-fileinfo \
--enable-filter \
--enable-hash \
--enable-json \
--enable-libxml \
--enable-pdo \
- --enable-phar \
--enable-session \
--enable-simplexml \
--enable-tokenizer \
@@ -186,17 +203,24 @@
--with-zlib=${prefix} \
--without-pear \
--disable-cgi \
- --disable-cli \
+ --disable-cli
+
+ if {[vercmp ${branch} 5.3] >= 0} {
+ configure.args-append \
+ --enable-fileinfo \
+ --enable-phar \
--disable-fpm
-
+
+ # ${php}-mysql +mysqlnd needs mysqlnd support compiled into the SAPI
+ configure.env-append \
+ PHP_MYSQLND_ENABLED=yes
+ }
+
if {[vercmp ${branch} 5.4] >= 0} {
# https://bugs.php.net/bug.php?id=68114
configure.args-append ac_cv_decimal_fp_supported=no
}
- # ${php}-mysql +mysqlnd needs mysqlnd support compiled into the SAPI
- configure.env PHP_MYSQLND_ENABLED=yes
-
configure.universal_args-delete --disable-dependency-tracking
test.run yes
@@ -226,9 +250,13 @@
}
patch_sites-append http://download.suhosin.org/
if {${suhosin_available}} {
- patchfiles-append patch-${php}-suhosin-before.diff
+ if {[vercmp ${branch} 5.3] >= 0} {
+ patchfiles-append patch-${php}-suhosin-before.diff
+ }
patchfiles-append ${suhosin_patch}
- patchfiles-append patch-${php}-suhosin-after.diff
+ if {[vercmp ${branch} 5.3] >= 0} {
+ patchfiles-append patch-${php}-suhosin-after.diff
+ }
}
}
}
@@ -246,6 +274,10 @@
subport ${php} {
PortGroup select 1.0
+ if {[vercmp ${branch} 5.2] == 0} {
+ revision 10
+ }
+
depends_run port:php_select
select.group php
@@ -260,14 +292,23 @@
post-destroot {
# Copy the default php.ini files.
xinstall -m 755 -d ${destroot}${phpinidir}
- xinstall -m 644 -W ${worksrcpath} \
- php.ini-development \
- php.ini-production \
- ${destroot}${phpinidir}
+ if {[vercmp ${branch} 5.3] >= 0} {
+ xinstall -m 644 -W ${worksrcpath} \
+ php.ini-development \
+ php.ini-production \
+ ${destroot}${phpinidir}
+ } else {
+ xinstall -m 644 -W ${worksrcpath} \
+ php.ini-dist \
+ php.ini-recommended \
+ ${destroot}${phpinidir}
+ }
- # Copy mysqlnd headers.
- xinstall -d ${destroot}${prefix}/include/${php}/php/ext/mysqlnd
- eval xinstall -m 644 [glob ${worksrcpath}/ext/mysqlnd/*.h] ${destroot}${prefix}/include/${php}/php/ext/mysqlnd
+ if {[vercmp ${branch} 5.3] >= 0} {
+ # Copy mysqlnd headers.
+ xinstall -d ${destroot}${prefix}/include/${php}/php/ext/mysqlnd
+ eval xinstall -m 644 [glob ${worksrcpath}/ext/mysqlnd/*.h] ${destroot}${prefix}/include/${php}/php/ext/mysqlnd
+ }
}
# Include the readline extension http://www.php.net/readline directly in
@@ -296,6 +337,7 @@
To learn how to update your code, please read the following guides:
+ http://php.net/manual/en/migration53.php
http://php.net/manual/en/migration54.php
http://php.net/manual/en/migration55.php
http://php.net/manual/en/migration56.php
@@ -309,19 +351,34 @@
}
if {![file exists ${phpinidir}/php.ini]} {
- notes-append "
+ if {[vercmp ${branch} 5.3] >= 0} {
+ notes-append "
To customize ${php}, copy\
${phpinidir}/php.ini-development (if this is a development server) or\
${phpinidir}/php.ini-production (if this is a production server) to\
${phpinidir}/php.ini and then make changes.
"
+ } else {
+ notes-append "
+To customize ${php}, copy ${phpinidir}/php.ini-recommended to\
+${phpinidir}/php.ini and then make changes.
+"
+ }
} else {
- notes-append "
+ if {[vercmp ${branch} 5.3] >= 0} {
+ notes-append "
You may need to update your php.ini for any changes that have been made\
in this version of ${php}. Compare ${phpinidir}/php.ini with\
${phpinidir}/php.ini-development (if this is a development server) or\
${phpinidir}/php.ini-production (if this is a production server).
"
+ } else {
+ notes-append "
+You may need to update your php.ini for any changes that have been made\
+in this version of ${php}. Compare ${phpinidir}/php.ini with\
+${phpinidir}/php.ini-recommended.
+"
+ }
}
# Enable livecheck for the two most recent stable PHP branches and the development branch.
@@ -381,7 +438,12 @@
homepage http://www.php.net/install.unix.commandline
- configure.args-replace --disable-cgi --enable-cgi
+ configure.args-delete --disable-cgi
+ if {[vercmp ${branch} 5.3] >= 0} {
+ configure.args-append --enable-cgi
+ } else {
+ configure.args-append --enable-fastcgi --enable-force-cgi-redirect
+ }
if {[vercmp ${branch} 5.4] >= 0} {
build.target cgi
@@ -396,6 +458,7 @@
### FPM SAPI ###
+if {[vercmp ${branch} 5.3] >= 0} {
subport ${php}-fpm {
description ${php} FPM SAPI
@@ -448,6 +511,7 @@
"
}
}
+}
### Bundled extensions ###
@@ -490,6 +554,7 @@
}
}
+if {[vercmp ${branch} 5.3] >= 0} {
subport ${php}-enchant {
categories-append textproc devel
@@ -512,6 +577,7 @@
${destroot}${examplesdir}
}
}
+}
subport ${php}-exif {
categories-append graphics
@@ -584,6 +650,10 @@
depends_lib-append port:gmp
+ if {[vercmp ${branch} 5.2] <= 0} {
+ patchfiles-append patch-${php}-ext-gmp-gmp.c.diff
+ }
+
configure.args-append --with-gmp=${prefix}
}
@@ -617,6 +687,7 @@
--with-kerberos=${prefix}
}
+if {[vercmp ${branch} 5.3] >= 0} {
subport ${php}-intl {
revision 1
@@ -629,6 +700,7 @@
depends_lib-append port:icu
}
+}
subport ${php}-ipc {
php.extensions shmop sysvmsg sysvsem sysvshm
@@ -711,6 +783,7 @@
configure.args-append --with-zlib-dir=${prefix}
+ if {[vercmp ${branch} 5.3] >= 0} {
variant mysqlnd conflicts mysql4 mysql5 mysql51 mysql55 mysql56 mariadb percona description {Use MySQL Native Driver} {
configure.args-append --with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
@@ -732,6 +805,7 @@
For percona, use ${prefix}/var/run/percona/mysqld.sock
"
}
+ }
variant mysql4 conflicts mysqlnd mysql5 mysql51 mysql55 mysql56 mariadb percona description {Use MySQL 4 libraries} {
depends_lib-append port:mysql4
@@ -831,7 +905,11 @@
}
if {![variant_isset mysql4] && ![variant_isset mysql5] && ![variant_isset mysql51] && ![variant_isset mysql55] && ![variant_isset mysql56] && ![variant_isset mariadb] && ![variant_isset percona]} {
- default_variants +mysqlnd
+ if {[vercmp ${branch} 5.3] >= 0} {
+ default_variants +mysqlnd
+ } else {
+ default_variants +mariadb
+ }
}
}
@@ -921,6 +999,10 @@
depends_lib-append port:oracle-instantclient
+ if {[vercmp ${branch} 5.2] <= 0} {
+ patchfiles-append patch-${php}-ext-pdo_oci-config.m4.diff
+ }
+
set lib_dir ${prefix}/lib/oracle
pre-configure {
regexp {\.dylib\.(.+)$} [glob -directory ${lib_dir} libclntsh.dylib.*] -> library_version
@@ -1069,6 +1151,7 @@
long_description ${description}
}
+if {[vercmp ${branch} 5.3] >= 0} {
subport ${php}-sqlite {
php.extensions sqlite sqlite3 pdo_sqlite
@@ -1094,6 +1177,7 @@
--with-pdo-sqlite=${prefix} \
--enable-sqlite-utf8
}
+}
subport ${php}-tidy {
categories-append www
Copied: trunk/dports/lang/php/files/patch-php52-ext-gd-config.m4.diff (from rev 115777, trunk/dports/lang/php/files/patch-php53-ext-gd-config.m4.diff)
===================================================================
--- trunk/dports/lang/php/files/patch-php52-ext-gd-config.m4.diff (rev 0)
+++ trunk/dports/lang/php/files/patch-php52-ext-gd-config.m4.diff 2014-11-14 05:02:56 UTC (rev 128130)
@@ -0,0 +1,80 @@
+--- ext/gd/config.m4.orig 2007-07-03 12:25:43.000000000 -0500
++++ ext/gd/config.m4 2014-01-10 20:14:34.000000000 -0600
+@@ -74,7 +74,7 @@
+ AC_DEFUN([PHP_GD_JPEG],[
+ if test "$PHP_JPEG_DIR" != "no"; then
+
+- for i in $PHP_JPEG_DIR /usr/local /usr; do
++ for i in $PHP_JPEG_DIR; do
+ test -f $i/$PHP_LIBDIR/libjpeg.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libjpeg.a && GD_JPEG_DIR=$i && break
+ done
+
+@@ -99,7 +99,7 @@
+ AC_DEFUN([PHP_GD_PNG],[
+ if test "$PHP_PNG_DIR" != "no"; then
+
+- for i in $PHP_PNG_DIR /usr/local /usr; do
++ for i in $PHP_PNG_DIR; do
+ test -f $i/$PHP_LIBDIR/libpng.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libpng.a && GD_PNG_DIR=$i && break
+ done
+
+@@ -134,7 +134,7 @@
+ AC_DEFUN([PHP_GD_XPM],[
+ if test "$PHP_XPM_DIR" != "no"; then
+
+- for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do
++ for i in $PHP_XPM_DIR; do
+ test -f $i/$PHP_LIBDIR/libXpm.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libXpm.a && GD_XPM_DIR=$i && break
+ done
+
+@@ -203,30 +203,25 @@
+ AC_DEFUN([PHP_GD_FREETYPE2],[
+ if test "$PHP_FREETYPE_DIR" != "no"; then
+
+- for i in $PHP_FREETYPE_DIR /usr/local /usr; do
+- if test -f "$i/include/freetype2/freetype/freetype.h"; then
++ for i in $PHP_FREETYPE_DIR; do
++ if test -f "$i/bin/freetype-config"; then
+ FREETYPE2_DIR=$i
+- FREETYPE2_INC_DIR=$i/include/freetype2
++ FREETYPE2_CONFIG="$i/bin/freetype-config"
+ break
+ fi
+ done
+
+ if test -z "$FREETYPE2_DIR"; then
+- AC_MSG_ERROR([freetype.h not found.])
++ AC_MSG_ERROR([freetype-config not found.])
+ fi
+
+- PHP_CHECK_LIBRARY(freetype, FT_New_Face,
+- [
+- PHP_ADD_LIBRARY_WITH_PATH(freetype, $FREETYPE2_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD)
+- PHP_ADD_INCLUDE($FREETYPE2_DIR/include)
+- PHP_ADD_INCLUDE($FREETYPE2_INC_DIR)
+- AC_DEFINE(USE_GD_IMGSTRTTF, 1, [ ])
+- AC_DEFINE(HAVE_LIBFREETYPE,1,[ ])
+- ],[
+- AC_MSG_ERROR([Problem with freetype.(a|so). Please check config.log for more information.])
+- ],[
+- -L$FREETYPE2_DIR/$PHP_LIBDIR
+- ])
++ FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags`
++ FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs`
++
++ PHP_EVAL_INCLINE($FREETYPE2_CFLAGS)
++ PHP_EVAL_LIBLINE($FREETYPE2_LIBS, GD_SHARED_LIBADD)
++ AC_DEFINE(USE_GD_IMGSTRTTF, 1, [ ])
++ AC_DEFINE(HAVE_LIBFREETYPE,1,[ ])
+ else
+ AC_MSG_RESULT([If configure fails try --with-freetype-dir=<DIR>])
+ fi
+@@ -235,7 +230,7 @@
+ AC_DEFUN([PHP_GD_T1LIB],[
+ if test "$PHP_T1LIB" != "no"; then
+
+- for i in $PHP_T1LIB /usr/local /usr; do
++ for i in $PHP_T1LIB; do
+ test -f "$i/include/t1lib.h" && GD_T1_DIR=$i && break
+ done
+
Added: trunk/dports/lang/php/files/patch-php52-ext-gmp-gmp.c.diff
===================================================================
--- trunk/dports/lang/php/files/patch-php52-ext-gmp-gmp.c.diff (rev 0)
+++ trunk/dports/lang/php/files/patch-php52-ext-gmp-gmp.c.diff 2014-11-14 05:02:56 UTC (rev 128130)
@@ -0,0 +1,18 @@
+Fix build with GMP 5+
+https://bugs.php.net/bug.php?id=50990
+https://github.com/php/php-src/commit/bd0a74c419f7c81c32ced26c8cd55b9c5cadcea4
+--- ext/gmp/gmp.c.orig
++++ ext/gmp/gmp.c
+@@ -1380,8 +1380,11 @@ ZEND_FUNCTION(gmp_random)
+
+ GMPG(rand_initialized) = 1;
+ }
++#ifdef GMP_LIMB_BITS
++ mpz_urandomb(*gmpnum_result, GMPG(rand_state), GMP_ABS (limiter) * GMP_LIMB_BITS);
++#else
+ mpz_urandomb(*gmpnum_result, GMPG(rand_state), GMP_ABS (limiter) * __GMP_BITS_PER_MP_LIMB);
+-
++#endif
+ ZEND_REGISTER_RESOURCE(return_value, gmpnum_result, le_gmp);
+ }
+ /* }}} */
Copied: trunk/dports/lang/php/files/patch-php52-ext-pdo_oci-config.m4.diff (from rev 126398, trunk/dports/lang/php52/files/patch-ext-pdo_oci-config.m4.diff)
===================================================================
--- trunk/dports/lang/php/files/patch-php52-ext-pdo_oci-config.m4.diff (rev 0)
+++ trunk/dports/lang/php/files/patch-php52-ext-pdo_oci-config.m4.diff 2014-11-14 05:02:56 UTC (rev 128130)
@@ -0,0 +1,34 @@
+Fix finding Oracle Instant Client library on OS X
+https://bugs.php.net/bug.php?id=39312
+https://github.com/php/php-src/commit/70075bc84c4c1f5700ee95415e07c1799e3c083c
+--- ext/pdo_oci/config.m4.orig
++++ ext/pdo_oci/config.m4
+@@ -79,6 +81,13 @@ You need to tell me where to find your Oracle Instant Client SDK, or set ORACLE_
+ fi
+ PDO_OCI_IC_PREFIX="`echo $PDO_OCI_DIR | cut -d, -f2`"
+ PDO_OCI_IC_VERS="`echo $PDO_OCI_DIR | cut -d, -f3`"
++ if test -n "$PDO_OCI_IC_VERS"; then
++ PDO_OCI_IC_MAJ_VER="`echo $PDO_OCI_IC_VERS | cut -d. -f1`"
++ if test "$PDO_OCI_IC_MAJ_VER" -ge 11; then
++ # From 11.1.0.7 the RPM path only has an X.Y component
++ PDO_OCI_IC_VERS="`echo $PDO_OCI_IC_VERS | cut -d. -f1-2`"
++ fi
++ fi
+ AC_MSG_CHECKING([for oci.h])
+ if test -f $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/oci.h ; then
+ PHP_ADD_INCLUDE($PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR)
+@@ -97,11 +97,11 @@
+ else
+ AC_MSG_ERROR([I'm too dumb to figure out where the include dir is in your Instant Client install])
+ fi
+- if test -f "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/client/lib/libclntsh.so" ; then
++ if test -f "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/client/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then
+ PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/client/lib"
+- elif test -f "$PDO_OCI_IC_PREFIX/client/lib/libclntsh.so" ; then
++ elif test -f "$PDO_OCI_IC_PREFIX/client/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then
+ PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/client/lib"
+- elif test -f "$PDO_OCI_IC_PREFIX/libclntsh.so" ; then
++ elif test -f "$PDO_OCI_IC_PREFIX/libclntsh.$SHLIB_SUFFIX_NAME" ; then
+ PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX"
+ else
+ AC_MSG_ERROR([I'm too dumb to figure out where the libraries are in your Instant Client install])
Copied: trunk/dports/lang/php/files/patch-php52-iODBC.diff (from rev 126398, trunk/dports/lang/php/files/patch-php53-iODBC.diff)
===================================================================
--- trunk/dports/lang/php/files/patch-php52-iODBC.diff (rev 0)
+++ trunk/dports/lang/php/files/patch-php52-iODBC.diff 2014-11-14 05:02:56 UTC (rev 128130)
@@ -0,0 +1,18 @@
+--- ext/odbc/config.m4.orig 2007-07-31 08:02:00.000000000 -0500
++++ ext/odbc/config.m4 2010-08-05 21:21:54.000000000 -0500
+@@ -99,6 +99,7 @@
+ dnl
+ dnl configure options
+ dnl
++:<<'MACPORTS_DISABLED'
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(adabas,,
+ [ --with-adabas[=DIR] Include Adabas D support [/usr/local]])
+@@ -363,6 +364,7 @@
+ AC_MSG_RESULT([$ext_ouput])
+ fi
+ fi
++MACPORTS_DISABLED
+
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(iodbc,,
Copied: trunk/dports/lang/php/files/patch-php52-libxml-2.9.diff (from rev 126371, trunk/dports/lang/php52/files/patch-libxml-2.9.diff)
===================================================================
--- trunk/dports/lang/php/files/patch-php52-libxml-2.9.diff (rev 0)
+++ trunk/dports/lang/php/files/patch-php52-libxml-2.9.diff 2014-11-14 05:02:56 UTC (rev 128130)
@@ -0,0 +1,51 @@
+--- a/ext/dom/node.c.orig 2010-05-01 13:30:38.000000000 -0500
++++ b/ext/dom/node.c 2013-05-09 20:34:37.000000000 -0500
+@@ -1950,9 +1950,17 @@
+ RETVAL_FALSE;
+ } else {
+ if (mode == 0) {
++#ifdef LIBXML2_NEW_BUFFER
++ ret = xmlOutputBufferGetSize(buf);
++#else
+ ret = buf->buffer->use;
++#endif
+ if (ret > 0) {
++#ifdef LIBXML2_NEW_BUFFER
++ RETVAL_STRINGL((char *) xmlOutputBufferGetContent(buf), ret, 1);
++#else
+ RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);
++#endif
+ } else {
+ RETVAL_EMPTY_STRING();
+ }
+--- a/ext/dom/documenttype.c.orig 2010-01-03 03:23:27.000000000 -0600
++++ b/ext/dom/documenttype.c 2013-05-09 20:34:37.000000000 -0500
+@@ -215,7 +215,13 @@
+ if (buff != NULL) {
+ xmlNodeDumpOutput (buff, NULL, (xmlNodePtr) intsubset, 0, 0, NULL);
+ xmlOutputBufferFlush(buff);
++
++#ifdef LIBXML2_NEW_BUFFER
++ ZVAL_STRINGL(*retval, xmlOutputBufferGetContent(buff),
++ xmlOutputBufferGetSize(buff), 1);
++#else
+ ZVAL_STRINGL(*retval, buff->buffer->content, buff->buffer->use, 1);
++#endif
+ (void)xmlOutputBufferClose(buff);
+ return SUCCESS;
+ }
+--- a/ext/simplexml/simplexml.c.orig 2010-05-05 06:40:11.000000000 -0500
++++ b/ext/simplexml/simplexml.c 2013-05-09 20:34:37.000000000 -0500
+@@ -1343,7 +1343,12 @@
+
+ xmlNodeDumpOutput(outbuf, (xmlDocPtr) sxe->document->ptr, node, 0, 0, ((xmlDocPtr) sxe->document->ptr)->encoding);
+ xmlOutputBufferFlush(outbuf);
++#ifdef LIBXML2_NEW_BUFFER
++ RETVAL_STRINGL((char *)xmlOutputBufferGetContent(outbuf),
++ xmlOutputBufferGetSize(outbuf), 1);
++#else
+ RETVAL_STRINGL((char *)outbuf->buffer->content, outbuf->buffer->use, 1);
++#endif
+ xmlOutputBufferClose(outbuf);
+ }
+ } else {
Copied: trunk/dports/lang/php/files/patch-php52-pcre-8.30.diff (from rev 126371, trunk/dports/lang/php52/files/patch-pcre-8.30.diff)
===================================================================
--- trunk/dports/lang/php/files/patch-php52-pcre-8.30.diff (rev 0)
+++ trunk/dports/lang/php/files/patch-php52-pcre-8.30.diff 2014-11-14 05:02:56 UTC (rev 128130)
@@ -0,0 +1,46 @@
+https://bugs.php.net/bug.php?id=60986
+https://github.com/php/php-src/commit/0f6e3408db4d8fd96e24459389b06dc7a6e40ee2
+https://github.com/php/php-src/commit/4ecfa5abf5d5cb47677565808bdd15dfb25e39b5
+--- a/ext/pcre/php_pcre.c.orig 2010-01-03 03:23:27.000000000 -0600
++++ b/ext/pcre/php_pcre.c 2012-05-12 12:28:32.000000000 -0500
+@@ -241,6 +241,7 @@
+ char *pattern;
+ int do_study = 0;
+ int poptions = 0;
++ int count = 0;
+ unsigned const char *tables = NULL;
+ #if HAVE_SETLOCALE
+ char *locale = setlocale(LC_CTYPE, NULL);
+@@ -253,10 +254,10 @@
+ regex_len = strlen(regex);
+ if (zend_hash_find(&PCRE_G(pcre_cache), regex, regex_len+1, (void **)&pce) == SUCCESS) {
+ /*
+- * We use a quick pcre_info() check to see whether cache is corrupted, and if it
++ * We use a quick pcre_fullinfo() check to see whether cache is corrupted, and if it
+ * is, we flush it and compile the pattern from scratch.
+ */
+- if (pcre_info(pce->re, NULL, NULL) == PCRE_ERROR_BADMAGIC) {
++ if (pcre_fullinfo(pce->re, NULL, PCRE_INFO_CAPTURECOUNT, &count) == PCRE_ERROR_BADMAGIC) {
+ zend_hash_clean(&PCRE_G(pcre_cache));
+ } else {
+ #if HAVE_SETLOCALE
+--- a/ext/pcre/php_pcre.def.orig 2007-02-26 06:38:34.000000000 -0600
++++ b/ext/pcre/php_pcre.def 2012-05-12 12:28:28.000000000 -0500
+@@ -4,7 +4,6 @@
+ php_pcre_exec
+ php_pcre_get_substring
+ php_pcre_get_substring_list
+-php_pcre_info
+ php_pcre_maketables
+ php_pcre_study
+ php_pcre_version
+--- a/main/php_compat.h.orig 2010-01-03 03:23:27.000000000 -0600
++++ b/main/php_compat.h 2012-05-12 12:28:28.000000000 -0500
+@@ -34,7 +34,6 @@
+ #define pcre_exec php_pcre_exec
+ #define pcre_get_substring php_pcre_get_substring
+ #define pcre_get_substring_list php_pcre_get_substring_list
+-#define pcre_info php_pcre_info
+ #define pcre_maketables php_pcre_maketables
+ #define pcre_study php_pcre_study
+ #define pcre_version php_pcre_version
Copied: trunk/dports/lang/php/files/patch-php52-scripts-php-config.in.diff (from rev 126371, trunk/dports/lang/php52/files/patch-scripts-php-config.in.diff)
===================================================================
--- trunk/dports/lang/php/files/patch-php52-scripts-php-config.in.diff (rev 0)
+++ trunk/dports/lang/php/files/patch-php52-scripts-php-config.in.diff 2014-11-14 05:02:56 UTC (rev 128130)
@@ -0,0 +1,11 @@
+--- a/scripts/php-config.in.orig 2007-08-24 06:44:10.000000000 -0500
++++ b/scripts/php-config.in 2009-08-10 16:33:49.000000000 -0500
+@@ -6,7 +6,7 @@
+ version="@PHP_VERSION@"
+ vernum="@PHP_VERSION_ID@"
+ include_dir="@includedir@/php"
+-includes="-I$include_dir -I$include_dir/main -I$include_dir/TSRM -I$include_dir/Zend -I$include_dir/ext -I$include_dir/ext/date/lib"
++includes="-I$include_dir -I$include_dir/main -I$include_dir/TSRM -I$include_dir/Zend -I$include_dir/ext -I$include_dir/ext/date/lib -I at prefix@/include"
+ ldflags="@PHP_LDFLAGS@"
+ libs="@EXTRA_LIBS@"
+ extension_dir='@EXTENSION_DIR@'
Copied: trunk/dports/lang/php/files/patch-php52-unixODBC.diff (from rev 126398, trunk/dports/lang/php/files/patch-php53-unixODBC.diff)
===================================================================
--- trunk/dports/lang/php/files/patch-php52-unixODBC.diff (rev 0)
+++ trunk/dports/lang/php/files/patch-php52-unixODBC.diff 2014-11-14 05:02:56 UTC (rev 128130)
@@ -0,0 +1,18 @@
+--- ext/odbc/config.m4.orig 2007-07-31 08:02:00.000000000 -0500
++++ ext/odbc/config.m4 2009-12-12 20:32:00.000000000 -0600
+@@ -99,6 +99,7 @@
+ dnl
+ dnl configure options
+ dnl
++:<<'MACPORTS_DISABLED'
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(adabas,,
+ [ --with-adabas[=DIR] Include Adabas D support [/usr/local]])
+@@ -404,6 +405,7 @@
+ AC_MSG_RESULT([$ext_output])
+ fi
+ fi
++MACPORTS_DISABLED
+
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(unixODBC,,
Copied: trunk/dports/lang/php/files/php52 (from rev 126371, trunk/dports/lang/php/files/php53)
===================================================================
--- trunk/dports/lang/php/files/php52 (rev 0)
+++ trunk/dports/lang/php/files/php52 2014-11-14 05:02:56 UTC (rev 128130)
@@ -0,0 +1,6 @@
+bin/php52
+bin/php-config52
+bin/phpize52
+share/man/man1/php52.1.gz
+share/man/man1/php-config52.1.gz
+share/man/man1/phpize52.1.gz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141113/192589fb/attachment-0001.html>
More information about the macports-changes
mailing list