Lines Matching refs:v
31 VARIANT v; in com_property_read() local
38 if (V_VT(&obj->v) == VT_DISPATCH) { in com_property_read()
39 VariantInit(&v); in com_property_read()
42 &v, 0, NULL, 1); in com_property_read()
45 php_com_zval_from_variant(rv, &v, obj->code_page); in com_property_read()
46 VariantClear(&v); in com_property_read()
63 VARIANT v; in com_property_write() local
67 if (V_VT(&obj->v) == VT_DISPATCH) { in com_property_write()
68 VariantInit(&v); in com_property_write()
71 DISPATCH_PROPERTYPUT|DISPATCH_PROPERTYPUTREF, &v, 1, value, 0)) { in com_property_write()
72 VariantClear(&v); in com_property_write()
83 VARIANT v; in com_read_dimension() local
89 if (V_VT(&obj->v) == VT_DISPATCH) { in com_read_dimension()
90 VariantInit(&v); in com_read_dimension()
93 DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, 1, offset, 0, 0)) { in com_read_dimension()
94 php_com_zval_from_variant(rv, &v, obj->code_page); in com_read_dimension()
95 VariantClear(&v); in com_read_dimension()
97 } else if (V_ISARRAY(&obj->v)) { in com_read_dimension()
100 if (SafeArrayGetDim(V_ARRAY(&obj->v)) == 1) { in com_read_dimension()
101 if (php_com_safearray_get_elem(&obj->v, &v, (LONG)Z_LVAL_P(offset))) { in com_read_dimension()
102 php_com_wrap_variant(rv, &v, obj->code_page); in com_read_dimension()
103 VariantClear(&v); in com_read_dimension()
120 VARIANT v; in com_write_dimension() local
130 if (V_VT(&obj->v) == VT_DISPATCH) { in com_write_dimension()
134 VariantInit(&v); in com_write_dimension()
137 DISPATCH_METHOD|DISPATCH_PROPERTYPUT, &v, 2, args, 0, 0)) { in com_write_dimension()
138 VariantClear(&v); in com_write_dimension()
140 } else if (V_ISARRAY(&obj->v)) { in com_write_dimension()
144 if (SafeArrayGetDim(V_ARRAY(&obj->v)) == 1) { in com_write_dimension()
145 if (FAILED(SafeArrayGetVartype(V_ARRAY(&obj->v), &vt)) || vt == VT_EMPTY) { in com_write_dimension()
146 vt = V_VT(&obj->v) & ~VT_ARRAY; in com_write_dimension()
152 VariantInit(&v); in com_write_dimension()
153 php_com_variant_from_zval(&v, value, obj->code_page); in com_write_dimension()
155 if (V_VT(&v) != vt) { in com_write_dimension()
156 VariantChangeType(&v, &v, 0, vt); in com_write_dimension()
160 res = SafeArrayPutElement(V_ARRAY(&obj->v), &indices, &v); in com_write_dimension()
162 res = SafeArrayPutElement(V_ARRAY(&obj->v), &indices, &v.lVal); in com_write_dimension()
165 VariantClear(&v); in com_write_dimension()
192 if (V_VT(&obj->v) == VT_DISPATCH) { in com_property_exists()
256 VARIANT v; in PHP_FUNCTION() local
259 if (V_VT(&obj->v) != VT_DISPATCH) { in PHP_FUNCTION()
270 VariantInit(&v); in PHP_FUNCTION()
272 …f(obj, (zend_internal_function*)EX(func), DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, nargs, args)) { in PHP_FUNCTION()
273 ret = php_com_zval_from_variant(return_value, &v, obj->code_page); in PHP_FUNCTION()
274 VariantClear(&v); in PHP_FUNCTION()
296 if (V_VT(&obj->v) != VT_DISPATCH) { in com_method_get()
413 switch (VarCmp(&obja->v, &objb->v, LOCALE_NEUTRAL, 0)) { in com_objects_compare()
435 VARIANT v; in com_object_cast() local
441 VariantInit(&v); in com_object_cast()
443 if (V_VT(&obj->v) == VT_DISPATCH) { in com_object_cast()
445 DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, 0, NULL, 1, 0)) { in com_object_cast()
446 VariantCopy(&v, &obj->v); in com_object_cast()
449 VariantCopy(&v, &obj->v); in com_object_cast()
476 if (vt != VT_EMPTY && vt != V_VT(&v)) { in com_object_cast()
477 res = VariantChangeType(&v, &v, 0, vt); in com_object_cast()
481 php_com_zval_from_variant(writeobj, &v, obj->code_page); in com_object_cast()
484 VariantClear(&v); in com_object_cast()
500 if (!V_ISARRAY(&obj->v)) { in com_object_count()
504 SafeArrayGetLBound(V_ARRAY(&obj->v), 1, &lbound); in com_object_count()
505 SafeArrayGetUBound(V_ARRAY(&obj->v), 1, &ubound); in com_object_count()
546 if (SUCCEEDED(IDispatch_QueryInterface(V_DISPATCH(&obj->v), in php_com_object_enable_event_sink()
579 VariantClear(&obj->v); in php_com_object_free_storage()
605 VariantInit(&cloneobj->v); in php_com_object_clone()
608 VariantCopyInd(&cloneobj->v, &origobject->v); in php_com_object_clone()
625 VariantInit(&obj->v); in php_com_object_new()