X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_negotiate.c;h=ede406f9c2a96718801c8199f67a0426ce99cc4b;hp=1535b86c67f1c077cb49cb8337b0e99113ea5a3d;hb=6116c2d8303b5301d927083af4dc763f952ab3ea;hpb=c225008cfbcf90259e4c97f240b1422ebce67c88 diff --git a/php_http_negotiate.c b/php_http_negotiate.c index 1535b86..ede406f 100644 --- a/php_http_negotiate.c +++ b/php_http_negotiate.c @@ -92,6 +92,7 @@ static int php_http_negotiate_reduce(zval *p, int num_args, va_list args, zend_h ZEND_HASH_FOREACH_END(); if (q && Z_DVAL_P(q) > 0) { + Z_TRY_ADDREF_P(q); zend_hash_update(result, supported, q); }