Lines Matching refs:ret

40 	enum_func_status ret = PASS;  in MYSQLND_METHOD()  local
51 DBG_RETURN(ret); in MYSQLND_METHOD()
62 ret = FAIL; in MYSQLND_METHOD()
82 DBG_RETURN(ret); in MYSQLND_METHOD()
93 enum_func_status ret = PASS; in MYSQLND_METHOD() local
116 ret = FAIL; in MYSQLND_METHOD()
138 DBG_RETURN(ret); in MYSQLND_METHOD()
404 enum_func_status ret; in mysqlnd_query_read_result_set_header() local
411 ret = FAIL; in mysqlnd_query_read_result_set_header()
416 ret = FAIL; in mysqlnd_query_read_result_set_header()
422 if (FAIL == (ret = PACKET_READ(rset_header, conn))) { in mysqlnd_query_read_result_set_header()
443 ret = FAIL; in mysqlnd_query_read_result_set_header()
458 ret = mysqlnd_handle_local_infile(conn, rset_header->info_or_local_file, &is_warning); in mysqlnd_query_read_result_set_header()
459 CONN_SET_STATE(conn, (ret == PASS || is_warning == TRUE)? CONN_READY:CONN_QUIT_SENT); in mysqlnd_query_read_result_set_header()
481 ret = PASS; in mysqlnd_query_read_result_set_header()
529 ret = FAIL; in mysqlnd_query_read_result_set_header()
533 if (FAIL == (ret = result->m.read_result_metadata(result, conn))) { in mysqlnd_query_read_result_set_header()
547 ret = FAIL; in mysqlnd_query_read_result_set_header()
550 if (FAIL == (ret = PACKET_READ(fields_eof, conn))) { in mysqlnd_query_read_result_set_header()
588 DBG_INF(ret == PASS? "PASS":"FAIL"); in mysqlnd_query_read_result_set_header()
589 DBG_RETURN(ret); in mysqlnd_query_read_result_set_header()
663 zend_ulong * ret; in MYSQLND_METHOD() local
665 ret = result->stored_data && result->stored_data->m.fetch_lengths ? in MYSQLND_METHOD()
671 DBG_RETURN(ret); in MYSQLND_METHOD()
680 enum_func_status ret; in MYSQLND_METHOD() local
707 if (PASS == (ret = PACKET_READ(row_packet, result->conn)) && !row_packet->eof) { in MYSQLND_METHOD()
763 } else if (ret == FAIL) { in MYSQLND_METHOD()
789 DBG_INF_FMT("ret=%s fetched=%u", ret == PASS? "PASS":"FAIL", *fetched_anything); in MYSQLND_METHOD()
799 enum_func_status ret; in MYSQLND_METHOD() local
826 if (PASS == (ret = PACKET_READ(row_packet, result->conn)) && !row_packet->eof) { in MYSQLND_METHOD()
889 } else if (ret == FAIL) { in MYSQLND_METHOD()
915 DBG_INF_FMT("ret=%s fetched=%u", ret == PASS? "PASS":"FAIL", *fetched_anything); in MYSQLND_METHOD()
972 enum_func_status ret = FAIL; in MYSQLND_METHOD() local
1036 ret = *row? PASS:FAIL; in MYSQLND_METHOD()
1041 ret = PASS; in MYSQLND_METHOD()
1052 DBG_RETURN(ret); in MYSQLND_METHOD()
1064 enum_func_status ret = FAIL; in MYSQLND_METHOD() local
1131 ret = PASS; in MYSQLND_METHOD()
1136 ret = PASS; in MYSQLND_METHOD()
1139 DBG_RETURN(ret); in MYSQLND_METHOD()
1151 enum_func_status ret = FAIL; in MYSQLND_METHOD() local
1234 ret = PASS; in MYSQLND_METHOD()
1241 ret = PASS; in MYSQLND_METHOD()
1245 DBG_RETURN(ret); in MYSQLND_METHOD()
1273 enum_func_status ret; in MYSQLND_METHOD() local
1283 ret = FAIL; in MYSQLND_METHOD()
1290 ret = FAIL; in MYSQLND_METHOD()
1300 ret = FAIL; in MYSQLND_METHOD()
1312 while (FAIL != (ret = PACKET_READ(row_packet, conn)) && !row_packet->eof) { in MYSQLND_METHOD()
1321 ret = FAIL; in MYSQLND_METHOD()
1327 ret = FAIL; in MYSQLND_METHOD()
1365 ret = FAIL; in MYSQLND_METHOD()
1377 if (ret == FAIL) { in MYSQLND_METHOD()
1384ret == PASS? "PASS":"FAIL", (uint) set->row_count, conn->upsert_status->warning_count, conn->upser… in MYSQLND_METHOD()
1388 DBG_RETURN(ret); in MYSQLND_METHOD()
1399 enum_func_status ret; in MYSQLND_METHOD() local
1426ret = result->m.store_result_fetch_data(conn, result, result->meta, row_buffers, flags & MYSQLND_S… in MYSQLND_METHOD()
1428 if (FAIL == ret) { in MYSQLND_METHOD()
1757 MYSQLND_ROW_C ret = NULL; in MYSQLND_METHOD() local
1761 MYSQLND_METHOD(mysqlnd_result_buffered, fetch_row_c)(result, (void *) &ret, 0, &fetched_anything); in MYSQLND_METHOD()
1763 …MYSQLND_METHOD(mysqlnd_result_unbuffered, fetch_row_c)(result, (void *) &ret, 0, &fetched_anything… in MYSQLND_METHOD()
1765 ret = NULL; in MYSQLND_METHOD()
1768 DBG_RETURN(ret); in MYSQLND_METHOD()
1899 MYSQLND_RES * ret = mnd_pecalloc(1, alloc_size, persistent); in mysqlnd_result_init() local
1903 if (!ret) { in mysqlnd_result_init()
1907 ret->persistent = persistent; in mysqlnd_result_init()
1908 ret->field_count = field_count; in mysqlnd_result_init()
1909 ret->m = *mysqlnd_result_get_methods(); in mysqlnd_result_init()
1911 DBG_RETURN(ret); in mysqlnd_result_init()
1921 MYSQLND_RES_UNBUFFERED * ret = mnd_pecalloc(1, alloc_size, persistent); in mysqlnd_result_unbuffered_init() local
1925 if (!ret) { in mysqlnd_result_unbuffered_init()
1929 if (!(ret->lengths = mnd_pecalloc(field_count, sizeof(zend_ulong), persistent))) { in mysqlnd_result_unbuffered_init()
1930 mnd_pefree(ret, persistent); in mysqlnd_result_unbuffered_init()
1933 if (!(ret->result_set_memory_pool = mysqlnd_mempool_create(MYSQLND_G(mempool_default_size)))) { in mysqlnd_result_unbuffered_init()
1934 mnd_efree(ret->lengths); in mysqlnd_result_unbuffered_init()
1935 mnd_pefree(ret, persistent); in mysqlnd_result_unbuffered_init()
1939 ret->persistent = persistent; in mysqlnd_result_unbuffered_init()
1940 ret->field_count= field_count; in mysqlnd_result_unbuffered_init()
1941 ret->ps = ps; in mysqlnd_result_unbuffered_init()
1943 ret->m = *mysqlnd_result_unbuffered_get_methods(); in mysqlnd_result_unbuffered_init()
1946 ret->m.fetch_lengths = NULL; /* makes no sense */ in mysqlnd_result_unbuffered_init()
1947 ret->m.row_decoder = php_mysqlnd_rowp_read_binary_protocol; in mysqlnd_result_unbuffered_init()
1949 ret->m.row_decoder = php_mysqlnd_rowp_read_text_protocol_zval; in mysqlnd_result_unbuffered_init()
1952 DBG_RETURN(ret); in mysqlnd_result_unbuffered_init()
1962 MYSQLND_RES_BUFFERED_ZVAL * ret = mnd_pecalloc(1, alloc_size, persistent); in mysqlnd_result_buffered_zval_init() local
1966 if (!ret) { in mysqlnd_result_buffered_zval_init()
1969 if (!(ret->lengths = mnd_pecalloc(field_count, sizeof(zend_ulong), persistent))) { in mysqlnd_result_buffered_zval_init()
1970 mnd_pefree(ret, persistent); in mysqlnd_result_buffered_zval_init()
1973 if (!(ret->result_set_memory_pool = mysqlnd_mempool_create(MYSQLND_G(mempool_default_size)))) { in mysqlnd_result_buffered_zval_init()
1974 mnd_efree(ret->lengths); in mysqlnd_result_buffered_zval_init()
1975 mnd_pefree(ret, persistent); in mysqlnd_result_buffered_zval_init()
1979 ret->persistent = persistent; in mysqlnd_result_buffered_zval_init()
1980 ret->field_count= field_count; in mysqlnd_result_buffered_zval_init()
1981 ret->ps = ps; in mysqlnd_result_buffered_zval_init()
1982 ret->m = *mysqlnd_result_buffered_get_methods(); in mysqlnd_result_buffered_zval_init()
1983 ret->type = MYSQLND_BUFFERED_TYPE_ZVAL; in mysqlnd_result_buffered_zval_init()
1986 ret->m.fetch_lengths = NULL; /* makes no sense */ in mysqlnd_result_buffered_zval_init()
1987 ret->m.row_decoder = php_mysqlnd_rowp_read_binary_protocol; in mysqlnd_result_buffered_zval_init()
1989 ret->m.row_decoder = php_mysqlnd_rowp_read_text_protocol_zval; in mysqlnd_result_buffered_zval_init()
1991 ret->m.fetch_row = MYSQLND_METHOD(mysqlnd_result_buffered_zval, fetch_row); in mysqlnd_result_buffered_zval_init()
1992 ret->m.fetch_lengths = MYSQLND_METHOD(mysqlnd_result_buffered_zval, fetch_lengths); in mysqlnd_result_buffered_zval_init()
1993 ret->m.data_seek = MYSQLND_METHOD(mysqlnd_result_buffered_zval, data_seek); in mysqlnd_result_buffered_zval_init()
1994ret->m.initialize_result_set_rest = MYSQLND_METHOD(mysqlnd_result_buffered_zval, initialize_result… in mysqlnd_result_buffered_zval_init()
1995 DBG_RETURN(ret); in mysqlnd_result_buffered_zval_init()
2005 MYSQLND_RES_BUFFERED_C * ret = mnd_pecalloc(1, alloc_size, persistent); in mysqlnd_result_buffered_c_init() local
2009 if (!ret) { in mysqlnd_result_buffered_c_init()
2012 if (!(ret->lengths = mnd_pecalloc(field_count, sizeof(zend_ulong), persistent))) { in mysqlnd_result_buffered_c_init()
2013 mnd_pefree(ret, persistent); in mysqlnd_result_buffered_c_init()
2016 if (!(ret->result_set_memory_pool = mysqlnd_mempool_create(MYSQLND_G(mempool_default_size)))) { in mysqlnd_result_buffered_c_init()
2017 mnd_efree(ret->lengths); in mysqlnd_result_buffered_c_init()
2018 mnd_pefree(ret, persistent); in mysqlnd_result_buffered_c_init()
2022 ret->persistent = persistent; in mysqlnd_result_buffered_c_init()
2023 ret->field_count= field_count; in mysqlnd_result_buffered_c_init()
2024 ret->ps = ps; in mysqlnd_result_buffered_c_init()
2025 ret->m = *mysqlnd_result_buffered_get_methods(); in mysqlnd_result_buffered_c_init()
2026 ret->type = MYSQLND_BUFFERED_TYPE_C; in mysqlnd_result_buffered_c_init()
2029 ret->m.fetch_lengths = NULL; /* makes no sense */ in mysqlnd_result_buffered_c_init()
2030 ret->m.row_decoder = php_mysqlnd_rowp_read_binary_protocol; in mysqlnd_result_buffered_c_init()
2032 ret->m.row_decoder = php_mysqlnd_rowp_read_text_protocol_c; in mysqlnd_result_buffered_c_init()
2034 ret->m.fetch_row = MYSQLND_METHOD(mysqlnd_result_buffered_c, fetch_row); in mysqlnd_result_buffered_c_init()
2035 ret->m.fetch_lengths = MYSQLND_METHOD(mysqlnd_result_buffered_c, fetch_lengths); in mysqlnd_result_buffered_c_init()
2036 ret->m.data_seek = MYSQLND_METHOD(mysqlnd_result_buffered_c, data_seek); in mysqlnd_result_buffered_c_init()
2037ret->m.initialize_result_set_rest = MYSQLND_METHOD(mysqlnd_result_buffered_c, initialize_result_se… in mysqlnd_result_buffered_c_init()
2039 DBG_RETURN(ret); in mysqlnd_result_buffered_c_init()