Lines Matching refs:res

44 	zend_resource *res;  member
99 if (stm->res) in stm_release()
100 zend_list_delete(stm->res); in stm_release()
253 if (stm->res) { in istream_destructor()
254 zend_resource *res = stm->res; in istream_destructor() local
255 stm->res = NULL; in istream_destructor()
256 zend_list_delete(res); in istream_destructor()
264 zend_list_delete(stm->stream->res); in istream_destructor()
284 GC_REFCOUNT(stream->res)++; in php_com_wrapper_export_stream()
286 stm->res = Z_RES_P(tmp); in php_com_wrapper_export_stream()
340 HRESULT res; in CPH_METHOD() local
346 res = get_persist_file(helper); in CPH_METHOD()
348 res = IPersistFile_GetCurFile(helper->ipf, &olename); in CPH_METHOD()
350 if (res == S_OK) { in CPH_METHOD()
359 } else if (res == S_FALSE) { in CPH_METHOD()
363 php_com_throw_exception(res, NULL); in CPH_METHOD()
365 php_com_throw_exception(res, NULL); in CPH_METHOD()
375 HRESULT res; in CPH_METHOD() local
384 res = get_persist_file(helper); in CPH_METHOD()
406 res = IPersistFile_Save(helper->ipf, olefilename, remember); in CPH_METHOD()
407 if (SUCCEEDED(res)) { in CPH_METHOD()
409 res = IPersistFile_GetCurFile(helper->ipf, &olefilename); in CPH_METHOD()
410 if (S_OK == res) { in CPH_METHOD()
424 if (FAILED(res)) { in CPH_METHOD()
425 php_com_throw_exception(res, NULL); in CPH_METHOD()
429 php_com_throw_exception(res, NULL); in CPH_METHOD()
438 HRESULT res; in CPH_METHOD() local
447 res = get_persist_file(helper); in CPH_METHOD()
468 res = IPersistFile_Load(helper->ipf, olefilename, (DWORD)flags); in CPH_METHOD()
471 if (FAILED(res)) { in CPH_METHOD()
472 php_com_throw_exception(res, NULL); in CPH_METHOD()
476 php_com_throw_exception(res, NULL); in CPH_METHOD()
485 HRESULT res; in CPH_METHOD() local
491 res = get_persist_stream_init(helper); in CPH_METHOD()
493 res = IPersistStreamInit_GetSizeMax(helper->ipsi, &size); in CPH_METHOD()
495 res = get_persist_stream(helper); in CPH_METHOD()
497 res = IPersistStream_GetSizeMax(helper->ips, &size); in CPH_METHOD()
499 php_com_throw_exception(res, NULL); in CPH_METHOD()
504 if (res != S_OK) { in CPH_METHOD()
505 php_com_throw_exception(res, NULL); in CPH_METHOD()
517 HRESULT res; in CPH_METHOD() local
522 res = get_persist_stream_init(helper); in CPH_METHOD()
524 res = IPersistStreamInit_InitNew(helper->ipsi); in CPH_METHOD()
526 if (res != S_OK) { in CPH_METHOD()
527 php_com_throw_exception(res, NULL); in CPH_METHOD()
532 php_com_throw_exception(res, NULL); in CPH_METHOD()
544 HRESULT res; in CPH_METHOD() local
565 res = S_OK; in CPH_METHOD()
572 res = OleLoadFromStream(stm, &IID_IDispatch, &disp); in CPH_METHOD()
574 if (SUCCEEDED(res)) { in CPH_METHOD()
578 res = get_persist_stream_init(helper); in CPH_METHOD()
580 res = IPersistStreamInit_Load(helper->ipsi, stm); in CPH_METHOD()
582 res = get_persist_stream(helper); in CPH_METHOD()
584 res = IPersistStreamInit_Load(helper->ipsi, stm); in CPH_METHOD()
590 if (FAILED(res)) { in CPH_METHOD()
591 php_com_throw_exception(res, NULL); in CPH_METHOD()
604 HRESULT res; in CPH_METHOD() local
627 res = get_persist_stream_init(helper); in CPH_METHOD()
629 res = IPersistStreamInit_Save(helper->ipsi, stm, TRUE); in CPH_METHOD()
631 res = get_persist_stream(helper); in CPH_METHOD()
633 res = IPersistStream_Save(helper->ips, stm, TRUE); in CPH_METHOD()
639 if (FAILED(res)) { in CPH_METHOD()
640 php_com_throw_exception(res, NULL); in CPH_METHOD()