summaryrefslogtreecommitdiff
path: root/ext/com/dispatch.c
diff options
context:
space:
mode:
authorHarald Radi <phanto@php.net>2002-05-30 23:07:23 +0000
committerHarald Radi <phanto@php.net>2002-05-30 23:07:23 +0000
commitd3ca5abab7ec5b434ae0ab97cb359691149ff20e (patch)
treef083f34d73673bbb21c7448abdfe27221082d32d /ext/com/dispatch.c
parent219aa68a30e7cd48728c2abd806e07e11e05f54a (diff)
downloadphp-git-d3ca5abab7ec5b434ae0ab97cb359691149ff20e.tar.gz
@ Added missing AddRef() calls in the COM extension. This should
@ fix weird behaviour (in particular with ADODB). (Harald) # waah, this suxx
Diffstat (limited to 'ext/com/dispatch.c')
-rw-r--r--ext/com/dispatch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/com/dispatch.c b/ext/com/dispatch.c
index 8d775a8662..23c3b0dd91 100644
--- a/ext/com/dispatch.c
+++ b/ext/com/dispatch.c
@@ -280,6 +280,7 @@ static HRESULT STDMETHODCALLTYPE disp_invokeex(
ZVAL_NULL(zarg);
}
} else {
+ // arg can't be an idispatch, so we don't care for the implicit AddRef() call here
if (FAILURE == php_variant_to_pval(arg, zarg, codepage TSRMLS_CC)) {
trace("failed to convert arg %d to zval\n", i);
ZVAL_NULL(zarg);