diff options
Diffstat (limited to 'lang/php4')
| -rw-r--r-- | lang/php4/Makefile | 2 | ||||
| -rw-r--r-- | lang/php4/Makefile.ext | 6 | ||||
| -rw-r--r-- | lang/php4/files/patch-Zend::zend.h | 12 | ||||
| -rw-r--r-- | lang/php4/files/patch-Zend::zend_execute.c | 13 | 
4 files changed, 29 insertions, 4 deletions
| diff --git a/lang/php4/Makefile b/lang/php4/Makefile index a692644b2525..a885f917f830 100644 --- a/lang/php4/Makefile +++ b/lang/php4/Makefile @@ -7,7 +7,7 @@  PORTNAME=	php4  PORTVERSION=	4.3.10 -PORTREVISION?=	0 +PORTREVISION?=	1  CATEGORIES?=	lang devel www  MASTER_SITES=	${MASTER_SITE_PHP:S,$,:release,} \  		http://downloads.php.net/ilia/:rc \ diff --git a/lang/php4/Makefile.ext b/lang/php4/Makefile.ext index 00c64f6dd641..6de92282d459 100644 --- a/lang/php4/Makefile.ext +++ b/lang/php4/Makefile.ext @@ -181,7 +181,7 @@ LIB_DEPENDS+=	mcve.3:${PORTSDIR}/devel/libmcve  CONFIGURE_ARGS+=--with-mcve=${LOCALBASE} \                  --with-openssl-dir=${OPENSSLBASE} -LDFLAGS+=       -lcrypto -lssl +LDFLAGS+=       -L${OPENSSLLIB} -lcrypto -lssl  USE_OPENSSL=    yes  .endif @@ -230,7 +230,7 @@ CONFIGURE_ARGS+=--with-unixODBC=${LOCALBASE}  CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE} \  		--with-openssl-dir=${OPENSSLBASE} -LDFLAGS+=	-lcrypto -lssl +LDFLAGS+=	-L${OPENSSLLIB} -lcrypto -lssl  USE_OPENSSL=	yes  .endif @@ -295,7 +295,7 @@ CONFIGURE_ARGS+=--with-snmp=${LOCALBASE} \  		--with-openssl-dir=${OPENSSLBASE} \  		--enable-ucd-snmp-hack -LDFLAGS+=       -lcrypto -lssl +LDFLAGS+=       -L${OPENSSLLIB} -lcrypto -lssl  USE_OPENSSL=    yes  OPTIONS=	SNMP4 "Use old UCD SNMP instead of the new NET SNMP" off diff --git a/lang/php4/files/patch-Zend::zend.h b/lang/php4/files/patch-Zend::zend.h new file mode 100644 index 000000000000..50625c403417 --- /dev/null +++ b/lang/php4/files/patch-Zend::zend.h @@ -0,0 +1,12 @@ +--- Zend/zend.h.orig    Mon Dec  6 15:42:56 2004 ++++ Zend/zend.h Mon Dec  6 15:46:40 2004 +@@ -176,7 +176,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__)) + # define do_alloca(p) alloca(p) + # define free_alloca(p) + #else + diff --git a/lang/php4/files/patch-Zend::zend_execute.c b/lang/php4/files/patch-Zend::zend_execute.c new file mode 100644 index 000000000000..bc6f098c8ad0 --- /dev/null +++ b/lang/php4/files/patch-Zend::zend_execute.c @@ -0,0 +1,13 @@ +--- Zend/zend_execute.c.orig	Tue Dec 28 15:03:55 2004 ++++ Zend/zend_execute.c	Tue Dec 28 15:03:57 2004 +@@ -1577,6 +1577,10 @@ + 									EX(Ts)[EX(opline)->op1.u.var].EA.data.overloaded_element.elements_list = (zend_llist *) emalloc(sizeof(zend_llist)); + 									zend_llist_init(EX(Ts)[EX(opline)->op1.u.var].EA.data.overloaded_element.elements_list, sizeof(zend_overloaded_element), NULL, 0); + 									EX(object).ptr->refcount++; ++									/* is-ref needed so that assign to this in call won't separate it */ ++									if(EX(object).ptr->refcount > 1) { ++										EX(object).ptr->is_ref = 1; ++									} + 								} + 								zend_llist_add_element(EX(Ts)[EX(opline)->op1.u.var].EA.data.overloaded_element.elements_list, &overloaded_element); + 								EX(fbc) = (zend_function *) emalloc(sizeof(zend_function)); | 
