summaryrefslogtreecommitdiff
path: root/ext/com/VARIANT.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/com/VARIANT.c')
-rw-r--r--ext/com/VARIANT.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/com/VARIANT.c b/ext/com/VARIANT.c
index 2303481cee..e06dd23e9e 100644
--- a/ext/com/VARIANT.c
+++ b/ext/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))