aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Larkin <glarkin@FreeBSD.org>2010-04-12 20:53:37 +0000
committerGreg Larkin <glarkin@FreeBSD.org>2010-04-12 20:53:37 +0000
commit89efa68f704186b3d00b7637485f9c31bcc4c818 (patch)
treeb6b259761baeef3e61afed90e87c448eae9e5f21
parent761f8721f808648d02a75a2b3697db69ca5e5db5 (diff)
downloadports-89efa68f704186b3d00b7637485f9c31bcc4c818.tar.gz
ports-89efa68f704186b3d00b7637485f9c31bcc4c818.zip
Notes
-rw-r--r--www/pecl-amfext/files/patch-amf.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/www/pecl-amfext/files/patch-amf.c b/www/pecl-amfext/files/patch-amf.c
new file mode 100644
index 000000000000..000b580d38d7
--- /dev/null
+++ b/www/pecl-amfext/files/patch-amf.c
@@ -0,0 +1,20 @@
+--- ./amf.c.orig 2010-04-12 16:48:28.000000000 -0400
++++ ./amf.c 2010-04-12 16:51:32.000000000 -0400
+@@ -1185,7 +1185,7 @@
+ int resultType = AMFC_TYPEDOBJECT;
+ int resultValueLength = 0;
+ zval** resultValue = struc;
+- int deallocResult = (*struc)->refcount;
++ int deallocResult = Z_REFCOUNT_P((*struc));
+
+ resultType = amf_perform_serialize_callback(struc, &className,&classNameLen,&resultValue,var_hash TSRMLS_CC);
+
+@@ -2670,7 +2670,7 @@
+ }
+ else
+ {
+- newval->refcount--;
++ Z_DELREF_P(newval);
+ }
+ *rval = newval;
+ }