diff options
author | Alex Dupre <ale@FreeBSD.org> | 2005-04-04 09:20:21 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2005-04-04 09:20:21 +0000 |
commit | 2cee0c25ff8d89399897cac7c1dcb1444b2f79d3 (patch) | |
tree | b8af981bc9d3d6808bfc8842257bfae900b60870 /lang/php53/files | |
parent | - Update to 0.991, aka 1.0beta1 (diff) |
Update PHP ports to 4.3.11 and 5.0.4 releases:
- fix security issues
- unbreak PEAR packages [1]
PR: ports/78516 [1]
Submitted by: Yen-Ming Lee <leeym@utopia.leeym.com> [1]
Tested by: thierry
Notes
Notes:
svn path=/head/; revision=132440
Diffstat (limited to 'lang/php53/files')
-rw-r--r-- | lang/php53/files/patch-acinclude.m4 | 14 | ||||
-rw-r--r-- | lang/php53/files/patch-ext::standard::php_var.h | 20 | ||||
-rw-r--r-- | lang/php53/files/patch-ext::standard::var_unserializer.c | 87 | ||||
-rw-r--r-- | lang/php53/files/patch-pear::Makefile.frag | 2 | ||||
-rw-r--r-- | lang/php53/files/patch-scripts::Makefile.frag | 9 | ||||
-rw-r--r-- | lang/php53/files/patch-scripts::phpize.in | 16 |
6 files changed, 26 insertions, 122 deletions
diff --git a/lang/php53/files/patch-acinclude.m4 b/lang/php53/files/patch-acinclude.m4 new file mode 100644 index 000000000000..32a0ca4c79c9 --- /dev/null +++ b/lang/php53/files/patch-acinclude.m4 @@ -0,0 +1,14 @@ +--- acinclude.m4.orig Tue Jan 25 14:02:45 2005 ++++ acinclude.m4 Mon Apr 4 11:09:25 2005 +@@ -1681,9 +1681,9 @@ + unset OPENSSL_LIBDIR + + dnl Fallbacks for different configure options +- if test "$PHP_OPENSSL" != "no"; then ++ if test -n "$PHP_OPENSSL" && test "$PHP_OPENSSL" != "no"; then + PHP_OPENSSL_DIR=$PHP_OPENSSL +- elif test "$PHP_IMAP_SSL" != "no"; then ++ elif test -n "$PHP_IMAP_SSL" && test "$PHP_IMAP_SSL" != "no"; then + PHP_OPENSSL_DIR=$PHP_IMAP_SSL + fi + diff --git a/lang/php53/files/patch-ext::standard::php_var.h b/lang/php53/files/patch-ext::standard::php_var.h deleted file mode 100644 index c3b01c3a9fd7..000000000000 --- a/lang/php53/files/patch-ext::standard::php_var.h +++ /dev/null @@ -1,20 +0,0 @@ ---- ext/standard/php_var.h.orig 2004/09/05 16:29:04 -+++ ext/standard/php_var.h 2005/01/15 18:18:08 -@@ -41,6 +41,7 @@ PHPAPI void php_debug_zval_dump(zval **s - - struct php_unserialize_data { - void *first; -+ void *first_dtor; - }; - - typedef struct php_unserialize_data php_unserialize_data_t; -@@ -54,7 +55,8 @@ PHPAPI int php_var_unserialize(zval **rv - zend_hash_destroy(&(var_hash)) - - #define PHP_VAR_UNSERIALIZE_INIT(var_hash) \ -- (var_hash).first = 0 -+ (var_hash).first = 0; \ -+ (var_hash).first_dtor = 0 - #define PHP_VAR_UNSERIALIZE_DESTROY(var_hash) \ - var_destroy(&(var_hash)) - diff --git a/lang/php53/files/patch-ext::standard::var_unserializer.c b/lang/php53/files/patch-ext::standard::var_unserializer.c deleted file mode 100644 index 930becda86ed..000000000000 --- a/lang/php53/files/patch-ext::standard::var_unserializer.c +++ /dev/null @@ -1,87 +0,0 @@ ---- ext/standard/var_unserializer.c.orig 2004/12/03 16:02:48 -+++ ext/standard/var_unserializer.c 2005/01/18 10:57:05 -@@ -56,6 +56,30 @@ static inline void var_push(php_unserial - var_hash->data[var_hash->used_slots++] = *rval; - } - -+static inline void var_push_dtor(php_unserialize_data_t *var_hashx, zval **rval) -+{ -+ var_entries *var_hash = var_hashx->first_dtor, *prev = NULL; -+ -+ while (var_hash && var_hash->used_slots == VAR_ENTRIES_MAX) { -+ prev = var_hash; -+ var_hash = var_hash->next; -+ } -+ -+ if (!var_hash) { -+ var_hash = emalloc(sizeof(var_entries)); -+ var_hash->used_slots = 0; -+ var_hash->next = 0; -+ -+ if (!var_hashx->first_dtor) -+ var_hashx->first_dtor = var_hash; -+ else -+ prev->next = var_hash; -+ } -+ -+ (*rval)->refcount++; -+ var_hash->data[var_hash->used_slots++] = *rval; -+} -+ - PHPAPI void var_replace(php_unserialize_data_t *var_hashx, zval *ozval, zval **nzval) - { - int i; -@@ -93,6 +117,7 @@ static int var_access(php_unserialize_da - PHPAPI void var_destroy(php_unserialize_data_t *var_hashx) - { - void *next; -+ int i; - var_entries *var_hash = var_hashx->first; - - while (var_hash) { -@@ -100,6 +125,17 @@ PHPAPI void var_destroy(php_unserialize_ - efree(var_hash); - var_hash = next; - } -+ -+ var_hash = var_hashx->first_dtor; -+ -+ while (var_hash) { -+ for (i = 0; i < var_hash->used_slots; i++) { -+ zval_ptr_dtor(&var_hash->data[i]); -+ } -+ next = var_hash->next; -+ efree(var_hash); -+ var_hash = next; -+ } - } - - /* }}} */ -@@ -177,7 +213,7 @@ static inline size_t parse_uiv(const uns - static inline int process_nested_data(UNSERIALIZE_PARAMETER, HashTable *ht, int elements) - { - while (elements-- > 0) { -- zval *key, *data, *old_data; -+ zval *key, *data, **old_data; - - ALLOC_INIT_ZVAL(key); - -@@ -205,14 +241,14 @@ static inline int process_nested_data(UN - - switch (Z_TYPE_P(key)) { - case IS_LONG: -- if (zend_hash_index_find(ht, Z_LVAL_P(key), (void **)&old_data)) { -- var_replace(var_hash, old_data, rval); -+ if (zend_hash_index_find(ht, Z_LVAL_P(key), (void **)&old_data)==SUCCESS) { -+ var_push_dtor(var_hash, old_data); - } - zend_hash_index_update(ht, Z_LVAL_P(key), &data, sizeof(data), NULL); - break; - case IS_STRING: -- if (zend_hash_find(ht, Z_STRVAL_P(key), Z_STRLEN_P(key) + 1, (void **)&old_data)) { -- var_replace(var_hash, old_data, rval); -+ if (zend_hash_find(ht, Z_STRVAL_P(key), Z_STRLEN_P(key) + 1, (void **)&old_data)==SUCCESS) { -+ var_push_dtor(var_hash, old_data); - } - zend_hash_update(ht, Z_STRVAL_P(key), Z_STRLEN_P(key) + 1, &data, sizeof(data), NULL); - break; diff --git a/lang/php53/files/patch-pear::Makefile.frag b/lang/php53/files/patch-pear::Makefile.frag index ee24944b46c6..082aa5e74fb8 100644 --- a/lang/php53/files/patch-pear::Makefile.frag +++ b/lang/php53/files/patch-pear::Makefile.frag @@ -4,7 +4,7 @@ # -*- makefile -*- peardir=$(PEAR_INSTALLDIR) -+XML_RPC_ver=1.1.0 ++XML_RPC_ver=1.2.2 # Skip all php.ini files altogether PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dsafe_mode=0 diff --git a/lang/php53/files/patch-scripts::Makefile.frag b/lang/php53/files/patch-scripts::Makefile.frag index 133dea408d39..7570701e6beb 100644 --- a/lang/php53/files/patch-scripts::Makefile.frag +++ b/lang/php53/files/patch-scripts::Makefile.frag @@ -1,6 +1,6 @@ ---- scripts/Makefile.frag.orig Tue Nov 23 14:06:16 2004 -+++ scripts/Makefile.frag Tue Jan 25 08:19:07 2005 -@@ -26,18 +26,12 @@ +--- scripts/Makefile.frag.orig Mon Feb 28 06:28:25 2005 ++++ scripts/Makefile.frag Fri Apr 1 15:42:21 2005 +@@ -34,21 +34,12 @@ / \ Zend/ \ TSRM/ \ @@ -12,9 +12,12 @@ 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/ diff --git a/lang/php53/files/patch-scripts::phpize.in b/lang/php53/files/patch-scripts::phpize.in index b75de61d6abf..cab5309be743 100644 --- a/lang/php53/files/patch-scripts::phpize.in +++ b/lang/php53/files/patch-scripts::phpize.in @@ -1,21 +1,15 @@ ---- scripts/phpize.in.orig Mon Aug 23 14:25:48 2004 -+++ scripts/phpize.in Mon Aug 23 14:26:41 2004 -@@ -101,14 +101,14 @@ +--- scripts/phpize.in.orig Fri Apr 1 15:42:47 2005 ++++ scripts/phpize.in Fri Apr 1 15:43:04 2005 +@@ -102,9 +102,9 @@ phpize_autotools() { - aclocal || exit 1 - autoconf || exit 1 - autoheader || exit 1 -+ aclocal15 || exit 1 ++ aclocal15 || exit 1 + autoconf253 || exit 1 + autoheader253 || exit 1 } - phpize_libtoolize() - { -- libtoolize=`$builddir/build/shtool path glibtoolize libtoolize` -+ libtoolize=`$builddir/build/shtool path libtoolize13` - $libtoolize -f -c || exit 1 - } - + # Main script |