disp 45 ext/com_dotnet/com_misc.c PHP_COM_DOTNET_API void php_com_wrap_dispatch(zval *z, IDispatch *disp, disp 58 ext/com_dotnet/com_misc.c V_DISPATCH(&obj->v) = disp; disp 565 ext/com_dotnet/com_persist.c IDispatch *disp = NULL; disp 568 ext/com_dotnet/com_persist.c res = OleLoadFromStream(stm, &IID_IDispatch, &disp); disp 571 ext/com_dotnet/com_persist.c php_com_wrap_dispatch(return_value, disp, COMG(code_page) TSRMLS_CC); disp 72 ext/com_dotnet/com_typeinfo.c IDispatch *disp = NULL; disp 76 ext/com_dotnet/com_typeinfo.c if (SUCCEEDED(hr = CoCreateInstance(&clsid, NULL, CLSCTX_SERVER, &IID_IDispatch, (LPVOID*)&disp)) && disp 77 ext/com_dotnet/com_typeinfo.c SUCCEEDED(hr = IDispatch_GetTypeInfo(disp, 0, LANG_NEUTRAL, &info))) { disp 84 ext/com_dotnet/com_typeinfo.c if (disp) { disp 85 ext/com_dotnet/com_typeinfo.c IDispatch_Release(disp); disp 229 ext/com_dotnet/com_variant.c IDispatch *disp; disp 231 ext/com_dotnet/com_variant.c if (SUCCEEDED(IUnknown_QueryInterface(V_UNKNOWN(v), &IID_IDispatch, &disp))) { disp 232 ext/com_dotnet/com_variant.c php_com_wrap_dispatch(z, disp, codepage TSRMLS_CC); disp 233 ext/com_dotnet/com_variant.c IDispatch_Release(disp); disp 55 ext/com_dotnet/com_wrapper.c static void disp_destructor(php_dispatchex *disp TSRMLS_DC); disp 59 ext/com_dotnet/com_wrapper.c php_dispatchex *disp = (php_dispatchex *)rsrc->ptr; disp 60 ext/com_dotnet/com_wrapper.c disp_destructor(disp TSRMLS_CC); disp 90 ext/com_dotnet/com_wrapper.c php_dispatchex *disp = (php_dispatchex*)This; \ disp 93 ext/com_dotnet/com_wrapper.c trace(" PHP Object:%p (name:unknown) %s\n", disp->object, methname); \ disp 95 ext/com_dotnet/com_wrapper.c trace(" PHP Object:%p (name:%s) %s\n", disp->object, Z_OBJCE_P(disp->object)->name, methname); \ disp 97 ext/com_dotnet/com_wrapper.c if (GetCurrentThreadId() != disp->engine_thread) { \ disp 111 ext/com_dotnet/com_wrapper.c IsEqualGUID(&disp->sinkid, riid)) { disp 113 ext/com_dotnet/com_wrapper.c InterlockedIncrement(&disp->refcount); disp 125 ext/com_dotnet/com_wrapper.c return InterlockedIncrement(&disp->refcount); disp 133 ext/com_dotnet/com_wrapper.c ret = InterlockedDecrement(&disp->refcount); disp 137 ext/com_dotnet/com_wrapper.c if (disp->id) disp 138 ext/com_dotnet/com_wrapper.c zend_list_delete(disp->id); disp 185 ext/com_dotnet/com_wrapper.c if (zend_hash_find(disp->name_to_dispid, name, namelen+1, (void**)&tmp) == FAILURE) { disp 229 ext/com_dotnet/com_wrapper.c trace("Looking for %s, namelen=%d in %p\n", name, namelen, disp->name_to_dispid); disp 232 ext/com_dotnet/com_wrapper.c if (zend_hash_find(disp->name_to_dispid, name, namelen+1, (void**)&tmp) == SUCCESS) { disp 260 ext/com_dotnet/com_wrapper.c if (SUCCESS == zend_hash_index_find(disp->dispid_to_name, id, (void**)&name)) { disp 290 ext/com_dotnet/com_wrapper.c retval = zend_read_property(Z_OBJCE_P(disp->object), disp->object, Z_STRVAL_PP(name), Z_STRLEN_PP(name)+1, 1 TSRMLS_CC); disp 292 ext/com_dotnet/com_wrapper.c zend_update_property(Z_OBJCE_P(disp->object), disp->object, Z_STRVAL_PP(name), Z_STRLEN_PP(name)+1, *params[0] TSRMLS_CC); disp 295 ext/com_dotnet/com_wrapper.c if (SUCCESS == call_user_function_ex(EG(function_table), &disp->object, *name, disp 391 ext/com_dotnet/com_wrapper.c if (SUCCESS == zend_hash_index_find(disp->dispid_to_name, id, (void**)&name)) { disp 410 ext/com_dotnet/com_wrapper.c while(!zend_hash_index_exists(disp->dispid_to_name, next)) disp 413 ext/com_dotnet/com_wrapper.c if (zend_hash_index_exists(disp->dispid_to_name, next)) { disp 451 ext/com_dotnet/com_wrapper.c static void generate_dispids(php_dispatchex *disp TSRMLS_DC) disp 460 ext/com_dotnet/com_wrapper.c if (disp->dispid_to_name == NULL) { disp 461 ext/com_dotnet/com_wrapper.c ALLOC_HASHTABLE(disp->dispid_to_name); disp 462 ext/com_dotnet/com_wrapper.c ALLOC_HASHTABLE(disp->name_to_dispid); disp 463 ext/com_dotnet/com_wrapper.c zend_hash_init(disp->name_to_dispid, 0, NULL, ZVAL_PTR_DTOR, 0); disp 464 ext/com_dotnet/com_wrapper.c zend_hash_init(disp->dispid_to_name, 0, NULL, ZVAL_PTR_DTOR, 0); disp 468 ext/com_dotnet/com_wrapper.c if (Z_OBJPROP_P(disp->object)) { disp 469 ext/com_dotnet/com_wrapper.c zend_hash_internal_pointer_reset_ex(Z_OBJPROP_P(disp->object), &pos); disp 471 ext/com_dotnet/com_wrapper.c zend_hash_get_current_key_ex(Z_OBJPROP_P(disp->object), &name, disp 480 ext/com_dotnet/com_wrapper.c zend_hash_move_forward_ex(Z_OBJPROP_P(disp->object), &pos); disp 483 ext/com_dotnet/com_wrapper.c if (zend_hash_find(disp->name_to_dispid, name, namelen, (void**)&tmp) == SUCCESS) disp 489 ext/com_dotnet/com_wrapper.c pid = zend_hash_next_free_element(disp->dispid_to_name); disp 490 ext/com_dotnet/com_wrapper.c zend_hash_index_update(disp->dispid_to_name, pid, (void*)&tmp, sizeof(zval *), NULL); disp 494 ext/com_dotnet/com_wrapper.c zend_hash_update(disp->name_to_dispid, name, namelen, (void*)&tmp, sizeof(zval *), NULL); disp 499 ext/com_dotnet/com_wrapper.c if (Z_OBJCE_P(disp->object)) { disp 500 ext/com_dotnet/com_wrapper.c zend_hash_internal_pointer_reset_ex(&Z_OBJCE_P(disp->object)->function_table, &pos); disp 502 ext/com_dotnet/com_wrapper.c zend_hash_get_current_key_ex(&Z_OBJCE_P(disp->object)->function_table, disp 512 ext/com_dotnet/com_wrapper.c zend_hash_move_forward_ex(Z_OBJPROP_P(disp->object), &pos); disp 515 ext/com_dotnet/com_wrapper.c if (zend_hash_find(disp->name_to_dispid, name, namelen, (void**)&tmp) == SUCCESS) disp 521 ext/com_dotnet/com_wrapper.c pid = zend_hash_next_free_element(disp->dispid_to_name); disp 522 ext/com_dotnet/com_wrapper.c zend_hash_index_update(disp->dispid_to_name, pid, (void*)&tmp, sizeof(zval *), NULL); disp 526 ext/com_dotnet/com_wrapper.c zend_hash_update(disp->name_to_dispid, name, namelen, (void*)&tmp, sizeof(zval *), NULL); disp 533 ext/com_dotnet/com_wrapper.c php_dispatchex *disp = (php_dispatchex*)CoTaskMemAlloc(sizeof(php_dispatchex)); disp 537 ext/com_dotnet/com_wrapper.c if (disp == NULL) disp 540 ext/com_dotnet/com_wrapper.c memset(disp, 0, sizeof(php_dispatchex)); disp 542 ext/com_dotnet/com_wrapper.c disp->engine_thread = GetCurrentThreadId(); disp 543 ext/com_dotnet/com_wrapper.c disp->lpVtbl = &php_dispatch_vtbl; disp 544 ext/com_dotnet/com_wrapper.c disp->refcount = 1; disp 549 ext/com_dotnet/com_wrapper.c disp->object = object; disp 551 ext/com_dotnet/com_wrapper.c disp->id = zend_list_insert(disp, le_dispatch TSRMLS_CC); disp 553 ext/com_dotnet/com_wrapper.c return disp; disp 556 ext/com_dotnet/com_wrapper.c static void disp_destructor(php_dispatchex *disp TSRMLS_DC) disp 560 ext/com_dotnet/com_wrapper.c trace("destroying COM wrapper for PHP object %p (name:unknown)\n", disp->object); disp 562 ext/com_dotnet/com_wrapper.c trace("destroying COM wrapper for PHP object %p (name:%s)\n", disp->object, Z_OBJCE_P(disp->object)->name); disp 565 ext/com_dotnet/com_wrapper.c disp->id = 0; disp 567 ext/com_dotnet/com_wrapper.c if (disp->refcount > 0) disp 568 ext/com_dotnet/com_wrapper.c CoDisconnectObject((IUnknown*)disp, 0); disp 570 ext/com_dotnet/com_wrapper.c zend_hash_destroy(disp->dispid_to_name); disp 571 ext/com_dotnet/com_wrapper.c zend_hash_destroy(disp->name_to_dispid); disp 572 ext/com_dotnet/com_wrapper.c FREE_HASHTABLE(disp->dispid_to_name); disp 573 ext/com_dotnet/com_wrapper.c FREE_HASHTABLE(disp->name_to_dispid); disp 575 ext/com_dotnet/com_wrapper.c if (disp->object) disp 576 ext/com_dotnet/com_wrapper.c zval_ptr_dtor(&disp->object); disp 578 ext/com_dotnet/com_wrapper.c CoTaskMemFree(disp); disp 584 ext/com_dotnet/com_wrapper.c php_dispatchex *disp = disp_constructor(val TSRMLS_CC); disp 592 ext/com_dotnet/com_wrapper.c disp->dispid_to_name = id_to_name; disp 594 ext/com_dotnet/com_wrapper.c memcpy(&disp->sinkid, sinkid, sizeof(disp->sinkid)); disp 597 ext/com_dotnet/com_wrapper.c ALLOC_HASHTABLE(disp->name_to_dispid); disp 598 ext/com_dotnet/com_wrapper.c zend_hash_init(disp->name_to_dispid, 0, NULL, ZVAL_PTR_DTOR, 0); disp 610 ext/com_dotnet/com_wrapper.c zend_hash_update(disp->name_to_dispid, Z_STRVAL_PP(ntmp), disp 617 ext/com_dotnet/com_wrapper.c return (IDispatch*)disp; disp 622 ext/com_dotnet/com_wrapper.c php_dispatchex *disp = NULL; disp 643 ext/com_dotnet/com_wrapper.c disp = disp_constructor(val TSRMLS_CC); disp 644 ext/com_dotnet/com_wrapper.c generate_dispids(disp TSRMLS_CC); disp 646 ext/com_dotnet/com_wrapper.c return (IDispatch*)disp; disp 162 ext/com_dotnet/php_com_dotnet_internal.h PHP_COM_DOTNET_API void php_com_wrap_dispatch(zval *z, IDispatch *disp, disp 498 ext/gd/libgd/gd_gif_out.c register code_int disp; disp 552 ext/gd/libgd/gd_gif_out.c disp = hsize_reg - i; /* secondary hash (after G. Knott) */ disp 554 ext/gd/libgd/gd_gif_out.c disp = 1; disp 556 ext/gd/libgd/gd_gif_out.c if ( (i -= disp) < 0 )