summaryrefslogtreecommitdiff
path: root/ext/rpc/com/variant.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/rpc/com/variant.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/rpc/com/variant.c')
-rw-r--r--ext/rpc/com/variant.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/rpc/com/variant.c b/ext/rpc/com/variant.c
index 2303481cee..e06dd23e9e 100644
--- a/ext/rpc/com/variant.c
+++ b/ext/rpc/com/variant.c
@@ -181,6 +181,7 @@ static pval php_VARIANT_get_property_handler(zend_property_reference *property_r
case OE_IS_OBJECT:
if (!strcmp(Z_STRVAL(overloaded_property->element), "value")) {
+ // var_arg can't be an idispatch, so we don't care for the implicit AddRef() call here
php_variant_to_pval(var_arg, &result, codepage TSRMLS_CC);
} else if (!strcmp(Z_STRVAL(overloaded_property->element), "type")) {
ZVAL_LONG(&result, V_VT(var_arg))