Lines Matching refs:z
35 static void safe_array_from_zval(VARIANT *v, zval *z, int codepage) in safe_array_from_zval() argument
47 zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(z), &pos); in safe_array_from_zval()
48 for (;; zend_hash_move_forward_ex(Z_ARRVAL_P(z), &pos)) { in safe_array_from_zval()
50 keytype = zend_hash_get_current_key_ex(Z_ARRVAL_P(z), &strindex, &intindex, &pos); in safe_array_from_zval()
64 bound.cElements = zend_hash_num_elements(Z_ARRVAL_P(z)); in safe_array_from_zval()
72 zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(z), &pos); in safe_array_from_zval()
73 for (;; zend_hash_move_forward_ex(Z_ARRVAL_P(z), &pos)) { in safe_array_from_zval()
74 if (NULL == (item = zend_hash_get_current_data_ex(Z_ARRVAL_P(z), &pos))) { in safe_array_from_zval()
77 zend_hash_get_current_key_ex(Z_ARRVAL_P(z), &strindex, &intindex, &pos); in safe_array_from_zval()
99 PHP_COM_DOTNET_API void php_com_variant_from_zval(VARIANT *v, zval *z, int codepage) in php_com_variant_from_zval() argument
105 if (z) { in php_com_variant_from_zval()
106 ZVAL_DEREF(z); in php_com_variant_from_zval()
107 ztype = Z_TYPE_P(z); in php_com_variant_from_zval()
126 if (php_com_is_valid_object(z)) { in php_com_variant_from_zval()
127 obj = CDNO_FETCH(z); in php_com_variant_from_zval()
143 V_DISPATCH(v) = php_com_wrapper_export(z); in php_com_variant_from_zval()
149 safe_array_from_zval(v, z, codepage); in php_com_variant_from_zval()
155 V_I4(v) = Z_LVAL_P(z); in php_com_variant_from_zval()
158 V_I8(v) = Z_LVAL_P(z); in php_com_variant_from_zval()
164 V_R8(v) = Z_DVAL_P(z); in php_com_variant_from_zval()
169 olestring = php_com_string_to_olestring(Z_STRVAL_P(z), Z_STRLEN_P(z), codepage); in php_com_variant_from_zval()
173 V_BSTR(v) = SysAllocStringByteLen((char*)olestring, (UINT)(Z_STRLEN_P(z) * sizeof(OLECHAR))); in php_com_variant_from_zval()
187 PHP_COM_DOTNET_API int php_com_zval_from_variant(zval *z, VARIANT *v, int codepage) in php_com_zval_from_variant() argument
196 ZVAL_NULL(z); in php_com_zval_from_variant()
199 ZVAL_LONG(z, (zend_long)V_UI1(v)); in php_com_zval_from_variant()
202 ZVAL_LONG(z, (zend_long)V_I1(v)); in php_com_zval_from_variant()
205 ZVAL_LONG(z, (zend_long)V_UI2(v)); in php_com_zval_from_variant()
208 ZVAL_LONG(z, (zend_long)V_I2(v)); in php_com_zval_from_variant()
211 ZVAL_LONG(z, (long)V_UI4(v)); in php_com_zval_from_variant()
214 ZVAL_LONG(z, (long)V_I4(v)); in php_com_zval_from_variant()
218 ZVAL_LONG(z, (zend_long)V_UI8(v)); in php_com_zval_from_variant()
221 ZVAL_LONG(z, (zend_long)V_I8(v)); in php_com_zval_from_variant()
225 ZVAL_LONG(z, V_INT(v)); in php_com_zval_from_variant()
228 ZVAL_LONG(z, (zend_long)V_UINT(v)); in php_com_zval_from_variant()
231 ZVAL_DOUBLE(z, (double)V_R4(v)); in php_com_zval_from_variant()
234 ZVAL_DOUBLE(z, V_R8(v)); in php_com_zval_from_variant()
237 ZVAL_BOOL(z, V_BOOL(v) ? 1 : 0); in php_com_zval_from_variant()
245 ZVAL_STRINGL(z, str, len); in php_com_zval_from_variant()
256 php_com_wrap_dispatch(z, disp, codepage); in php_com_zval_from_variant()
266 php_com_wrap_dispatch(z, V_DISPATCH(v), codepage); in php_com_zval_from_variant()
272 return php_com_zval_from_variant(z, V_VARIANTREF(v), codepage); in php_com_zval_from_variant()
275 php_com_wrap_variant(z, v, codepage); in php_com_zval_from_variant()