summaryrefslogtreecommitdiff
path: root/ext/com/variant.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/com/variant.h')
-rw-r--r--ext/com/variant.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/com/variant.h b/ext/com/variant.h
index 3fd11f32e4..31ea342d66 100644
--- a/ext/com/variant.h
+++ b/ext/com/variant.h
@@ -16,7 +16,7 @@
comval *obj; \
ALLOC_COM(obj); \
php_COM_set(obj, &V_DISPATCH(v), TRUE TSRMLS_CC); \
- ZVAL_LONG((z), zend_list_insert(obj, IS_COM)); \
+ ZVAL_RESOURCE((z), zend_list_insert(obj, IS_COM)); \
} else { \
php_variant_to_pval((v), (z), codepage TSRMLS_CC); \
FREE_VARIANT(v); \