Lines Matching refs:svm
60 #define IBASE_SVC_ERROR(svm) \ argument
61 do { zend_list_delete(svm->res); _php_ibase_error(); } while (0)
143 ibase_service *svm; in _php_ibase_user() local
154 svm = (ibase_service *)zend_fetch_resource_ex(res, "Interbase service manager handle", in _php_ibase_user()
173 if (isc_service_start(IB_STATUS, &svm->handle, NULL, spb_len, buf)) { in _php_ibase_user()
174 IBASE_SVC_ERROR(svm); in _php_ibase_user()
211 ibase_service *svm; in PHP_FUNCTION() local
242 svm = (ibase_service*)emalloc(sizeof(ibase_service)); in PHP_FUNCTION()
243 svm->handle = handle; in PHP_FUNCTION()
244 svm->hostname = estrdup(host); in PHP_FUNCTION()
245 svm->username = estrdup(user); in PHP_FUNCTION()
247 RETVAL_RES(zend_register_resource(svm, le_service)); in PHP_FUNCTION()
249 svm->res = Z_RES_P(return_value); in PHP_FUNCTION()
272 ibase_service *svm, char info_action) in _php_ibase_service_query() argument
283 if (isc_service_start(IB_STATUS, &svm->handle, NULL, sizeof(action), action)) { in _php_ibase_service_query()
284 IBASE_SVC_ERROR(svm); in _php_ibase_service_query()
292 if (isc_service_query(IB_STATUS, &svm->handle, NULL, sizeof(spb), spb, in _php_ibase_service_query()
295 IBASE_SVC_ERROR(svm); in _php_ibase_service_query()
430 ibase_service *svm; in _php_ibase_backup_restore() local
439 svm = (ibase_service *)zend_fetch_resource_ex(res, in _php_ibase_backup_restore()
458 if (isc_service_start(IB_STATUS, &svm->handle, NULL, (unsigned short)spb_len, buf)) { in _php_ibase_backup_restore()
459 IBASE_SVC_ERROR(svm); in _php_ibase_backup_restore()
466 _php_ibase_service_query(INTERNAL_FUNCTION_PARAM_PASSTHRU, svm, isc_info_svc_line); in _php_ibase_backup_restore()
494 ibase_service *svm; in _php_ibase_service_action() local
503 svm = (ibase_service *)zend_fetch_resource_ex(res, in _php_ibase_service_action()
566 if (isc_service_start(IB_STATUS, &svm->handle, NULL, (unsigned short)spb_len, buf)) { in _php_ibase_service_action()
567 IBASE_SVC_ERROR(svm); in _php_ibase_service_action()
572 _php_ibase_service_query(INTERNAL_FUNCTION_PARAM_PASSTHRU, svm, isc_info_svc_line); in _php_ibase_service_action()
601 ibase_service *svm; in PHP_FUNCTION() local
609 svm = (ibase_service *)zend_fetch_resource_ex(res, in PHP_FUNCTION()
612 _php_ibase_service_query(INTERNAL_FUNCTION_PARAM_PASSTHRU, svm, (char)action); in PHP_FUNCTION()