summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorsborrill <sborrill@pkgsrc.org>2009-02-25 08:59:47 +0000
committersborrill <sborrill@pkgsrc.org>2009-02-25 08:59:47 +0000
commita418dd8e2c08f5927ab414d40f8d05dc71722948 (patch)
tree73655f4c655fd8bcb6a08b1f4257ce86a1977a21 /lang
parentea0c4bee5f81094203e319774f96ee31dc5a5fc2 (diff)
downloadpkgsrc-a418dd8e2c08f5927ab414d40f8d05dc71722948.tar.gz
Fix memory leak and pullup bug fix for http://bugs.php.net/bug.php?id=46918
Remove this patch when PHP >= 5.2.9 is released as it will contain these changes Bump PKGREVISION of php-imap
Diffstat (limited to 'lang')
-rw-r--r--lang/php5/distinfo3
-rw-r--r--lang/php5/patches/patch-as27
2 files changed, 29 insertions, 1 deletions
diff --git a/lang/php5/distinfo b/lang/php5/distinfo
index 1debc01eaec..8b589baaaf2 100644
--- a/lang/php5/distinfo
+++ b/lang/php5/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.59 2009/02/21 17:01:52 adrianp Exp $
+$NetBSD: distinfo,v 1.60 2009/02/25 08:59:47 sborrill Exp $
SHA1 (php-5.2.8/php-5.2.8.tar.bz2) = d285636144e0a4aa61195793634807e763c63dc3
RMD160 (php-5.2.8/php-5.2.8.tar.bz2) = d38fe5d918c335089a027600a93d950f417a7e98
@@ -16,3 +16,4 @@ SHA1 (patch-an) = 8f4174627b8cb5f8bfbc59413c95f71e26b9e602
SHA1 (patch-ap) = 5eb0e0e4244a993da93e36f8fcb5553454207fce
SHA1 (patch-aq) = 0c9d48547da2fa80aa8357d23ad8505d1c0330df
SHA1 (patch-ar) = 2d74ec926cc00bfbb67d16210af78c33ad9ac38d
+SHA1 (patch-as) = 7612bf91fe04d980a41dbb0ea652fd50d3b5cebb
diff --git a/lang/php5/patches/patch-as b/lang/php5/patches/patch-as
new file mode 100644
index 00000000000..00a413a933c
--- /dev/null
+++ b/lang/php5/patches/patch-as
@@ -0,0 +1,27 @@
+$NetBSD: patch-as,v 1.4 2009/02/25 08:59:47 sborrill Exp $
+
+Fix memory leak and pullup bug fix for http://bugs.php.net/bug.php?id=46918
+
+Remove this patch when PHP >= 5.2.9 is released as it will contain these
+changes
+
+--- ext/imap/php_imap.c.orig 2009-02-24 17:45:27.000000000 +0000
++++ ext/imap/php_imap.c 2009-02-24 17:47:14.000000000 +0000
+@@ -2172,7 +2172,7 @@
+
+ /* rfc822_parse_adrlist() modifies passed string. Copy it. */
+ str_copy = estrndup(Z_STRVAL_PP(str), Z_STRLEN_PP(str));
+- rfc822_parse_adrlist(&env->to, str_copy, defaulthost);
++ rfc822_parse_adrlist(&env->to, str_copy, Z_STRVAL_PP(defaulthost));
+ efree(str_copy);
+
+ array_init(return_value);
+@@ -2196,6 +2196,8 @@
+ }
+ add_next_index_object(return_value, tovals TSRMLS_CC);
+ } while ((addresstmp = addresstmp->next));
++
++ mail_free_envelope(&env);
+ }
+ /* }}} */
+