Files
macports-ports/php/php-amf/files/patch-amf.c.diff

41 lines
1.0 KiB
Diff

http://svn.php.net/viewvc?view=revision&revision=280732
http://svn.php.net/viewvc?view=revision&revision=297236
--- amf.c.orig 2008-07-18 05:28:36.000000000 -0500
+++ amf.c 2012-05-25 18:58:22.000000000 -0500
@@ -32,7 +32,7 @@
/* module Declarations {{{1*/
-static function_entry amf_functions[] = {
+static zend_function_entry amf_functions[] = {
PHP_FE(amf_encode, NULL)
PHP_FE(amf_decode, NULL)
PHP_FE(amf_join_test, NULL)
@@ -1185,7 +1185,7 @@
int resultType = AMFC_TYPEDOBJECT;
int resultValueLength = 0;
zval** resultValue = struc;
- int deallocResult = (*struc)->refcount;
+ int deallocResult = ZVAL_REFCOUNT(*struc);
resultType = amf_perform_serialize_callback(struc, &className,&classNameLen,&resultValue,var_hash TSRMLS_CC);
@@ -2632,7 +2632,7 @@
return SUCCESS;
}
}
- ZVAL_STRINGL(*rval, (char*)src, slength, 1)
+ ZVAL_STRINGL(*rval, (char*)src, slength, 1);
return SUCCESS;
}
@@ -2670,7 +2670,7 @@
}
else
{
- newval->refcount--;
+ ZVAL_DELREF(newval);
}
*rval = newval;
}