1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00

- Unbreak after recent PHP 5.3.2 update

Reported by:	pointyhat
Approved by:	portmgr (itetcu, erwin - implicit)
This commit is contained in:
Greg Larkin 2010-04-12 20:53:37 +00:00
parent 761f8721f8
commit 89efa68f70
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=252612

View File

@ -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;
}