Home
last modified time | relevance | path

Searched refs:error_info (Results 1 – 23 of 23) sorted by relevance

/PHP-8.0/ext/mysqlnd/
H A Dmysqlnd_loaddata.c157 SET_CLIENT_ERROR(conn->error_info, CR_UNKNOWN_ERROR, UNKNOWN_SQLSTATE, in mysqlnd_handle_local_infile()
160 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile()
173 char tmp_buf[sizeof(conn->error_info->error)]; in mysqlnd_handle_local_infile()
178 SET_CLIENT_ERROR(conn->error_info, tmp_error_no, UNKNOWN_SQLSTATE, tmp_buf); in mysqlnd_handle_local_infile()
180 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile()
186 if ((ret = net->data->m.send(net, vio, buf, bufsize, conn->stats, conn->error_info)) == 0) { in mysqlnd_handle_local_infile()
188 SET_CLIENT_ERROR(conn->error_info, CR_SERVER_LOST, UNKNOWN_SQLSTATE, lost_conn); in mysqlnd_handle_local_infile()
195 SET_CLIENT_ERROR(conn->error_info, CR_SERVER_LOST, UNKNOWN_SQLSTATE, lost_conn); in mysqlnd_handle_local_infile()
201 char tmp_buf[sizeof(conn->error_info->error)]; in mysqlnd_handle_local_infile()
206 SET_CLIENT_ERROR(conn->error_info, tmp_error_no, UNKNOWN_SQLSTATE, tmp_buf); in mysqlnd_handle_local_infile()
[all …]
H A Dmysqlnd_ps.c51 COPY_CLIENT_ERROR(stmt->error_info, *conn->error_info); in mysqlnd_stmt_send_cursor_fetch_command()
216 COPY_CLIENT_ERROR(stmt->error_info, *conn->error_info); in MYSQLND_METHOD()
336 COPY_CLIENT_ERROR(stmt->error_info, prepare_resp.error_info); in mysqlnd_stmt_read_prepare_response()
337 COPY_CLIENT_ERROR(conn->error_info, prepare_resp.error_info); in mysqlnd_stmt_read_prepare_response()
443 COPY_CLIENT_ERROR(stmt->error_info, *conn->error_info); in MYSQLND_METHOD()
512 COPY_CLIENT_ERROR(stmt->error_info, *conn->error_info); in mysqlnd_stmt_execute_parse_response()
731 COPY_CLIENT_ERROR(stmt->error_info, *conn->error_info); in MYSQLND_METHOD()
917 COPY_CLIENT_ERROR(conn->error_info, row_packet->error_info); in mysqlnd_stmt_fetch_row_unbuffered()
1195 COPY_CLIENT_ERROR(stmt->error_info, *conn->error_info); in MYSQLND_METHOD()
1301 COPY_CLIENT_ERROR(stmt->error_info, *conn->error_info); in MYSQLND_METHOD()
[all …]
H A Dmysqlnd_wireprotocol.c331 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_greet_read() local
502 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_auth_write() local
652 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_auth_response_read() local
775 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_change_auth_response_write() local
816 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_ok_read() local
911 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_eof_read() local
979 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_cmd_write() local
1038 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_rset_header_read() local
1180 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_rset_field_read() local
1846 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_stats_read() local
[all …]
H A Dmysqlnd_protocol_frame_codec.c54 MYSQLND_STATS *conn_stats, MYSQLND_ERROR_INFO *error_info, in write_compressed_packet() argument
116 MYSQLND_STATS * const conn_stats, MYSQLND_ERROR_INFO * const error_info) in MYSQLND_METHOD()
150 pfc, vio, conn_stats, error_info, in MYSQLND_METHOD()
157 pfc, vio, conn_stats, error_info, in MYSQLND_METHOD()
160 pfc, vio, conn_stats, error_info, in MYSQLND_METHOD()
204 SET_CLIENT_ERROR(error_info, CR_SERVER_GONE_ERROR, UNKNOWN_SQLSTATE, mysqlnd_server_gone); in MYSQLND_METHOD()
316 MYSQLND_STATS * const conn_stats, MYSQLND_ERROR_INFO * const error_info) in MYSQLND_METHOD()
369 DBG_RETURN(pfc->data->m.receive(pfc, vio, p, to_read, conn_stats, error_info)); in MYSQLND_METHOD()
374 DBG_RETURN(vio->data->m.network_read(vio, p, to_read, conn_stats, error_info)); in MYSQLND_METHOD()
506 pfc = factory->get_protocol_frame_codec(persistent, stats, error_info); in mysqlnd_pfc_init()
[all …]
H A Dmysqlnd_commands.c41 conn->error_info, in MYSQLND_METHOD()
67 conn->error_info, in MYSQLND_METHOD()
94 conn->error_info, in MYSQLND_METHOD()
139 conn->error_info, in MYSQLND_METHOD()
170 conn->error_info, in MYSQLND_METHOD()
207 conn->error_info, in MYSQLND_METHOD()
247 conn->error_info, in MYSQLND_METHOD()
276 conn->error_info, in MYSQLND_METHOD()
302 conn->error_info, in MYSQLND_METHOD()
324 conn->error_info, in MYSQLND_METHOD()
[all …]
H A Dmysqlnd_vio.h21 …E(mysqlnd_object_factory) *object_factory, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * error_info);
22 … mysqlnd_vio_free(MYSQLND_VIO * const vio, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * error_info);
H A Dmysqlnd_protocol_frame_codec.h21 …E(mysqlnd_object_factory) *object_factory, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * error_info);
22 … mysqlnd_pfc_free(MYSQLND_PFC * const pfc, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * error_info);
H A Dmysqlnd_driver.c123 data->error_info = &data->error_info_impl; in MYSQLND_METHOD()
141 data->protocol_frame_codec = mysqlnd_pfc_init(persistent, factory, data->stats, data->error_info); in MYSQLND_METHOD()
142 data->vio = mysqlnd_vio_init(persistent, factory, data->stats, data->error_info); in MYSQLND_METHOD()
209 stmt->error_info = &stmt->error_info_impl; in MYSQLND_METHOD()
232 SET_OOM_ERROR(conn->error_info); in MYSQLND_METHOD()
244 …ctory, get_pfc)(const zend_bool persistent, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * error_info) in MYSQLND_METHOD()
257 if (PASS != pfc->data->m.init(pfc, stats, error_info)) { in MYSQLND_METHOD()
258 pfc->data->m.dtor(pfc, stats, error_info); in MYSQLND_METHOD()
269 …ctory, get_vio)(const zend_bool persistent, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * error_info) in MYSQLND_METHOD()
282 if (PASS != vio->data->m.init(vio, stats, error_info)) { in MYSQLND_METHOD()
[all …]
H A Dmysqlnd_vio.c76 MYSQLND_STATS * const stats, MYSQLND_ERROR_INFO * const error_info) in MYSQLND_METHOD()
105 MYSQLND_STATS * const stats, MYSQLND_ERROR_INFO * const error_info) in MYSQLND_METHOD()
119 MYSQLND_STATS * const conn_stats, MYSQLND_ERROR_INFO * const error_info) in MYSQLND_METHOD()
190 SET_CLIENT_ERROR(error_info, in MYSQLND_METHOD()
277 MYSQLND_ERROR_INFO * const error_info) in MYSQLND_METHOD()
308 vio->data->m.close_stream(vio, conn_stats, error_info); in MYSQLND_METHOD()
310 open_stream = vio->data->m.get_open_stream(vio, scheme, error_info); in MYSQLND_METHOD()
314 vio->data->m.post_connect_set_opt(vio, scheme, conn_stats, error_info); in MYSQLND_METHOD()
696 vio->data->m.close_stream(vio, stats, error_info); in MYSQLND_METHOD()
778 vio = factory->get_vio(persistent, stats, error_info); in mysqlnd_vio_init()
[all …]
H A Dmysqlnd_auth.c107 SET_OOM_ERROR(conn->error_info); in mysqlnd_run_authentication()
122 if (conn->error_info->error_no) { in mysqlnd_run_authentication()
160 DBG_INF_FMT("conn->error_info->error_no = %d", conn->error_info->error_no); in mysqlnd_run_authentication()
161 } while (ret == FAIL && conn->error_info->error_no == 0 && switch_to_auth_protocol != NULL); in mysqlnd_run_authentication()
350 …strlcpy(conn->error_info->sqlstate, auth_resp_packet.sqlstate, sizeof(conn->error_info->sqlstate)); in mysqlnd_auth_handshake()
457 COPY_CLIENT_ERROR(conn->error_info, chg_user_resp.error_info); in mysqlnd_auth_change_user()
478 if (conn->error_info->error_no) { in mysqlnd_auth_change_user()
521 SET_CLIENT_ERROR(conn->error_info, CR_UNKNOWN_ERROR, UNKNOWN_SQLSTATE, mysqlnd_old_passwd); in mysqlnd_auth_change_user()
881 SET_CLIENT_ERROR(conn->error_info, CR_UNKNOWN_ERROR, UNKNOWN_SQLSTATE, in mysqlnd_sha256_get_rsa_key()
1164 SET_CLIENT_ERROR(conn->error_info, CR_UNKNOWN_ERROR, UNKNOWN_SQLSTATE, in mysqlnd_caching_sha2_get_key()
[all …]
H A Dmysqlnd_result.c347 SET_OOM_ERROR(conn->error_info); in MYSQLND_METHOD()
413 COPY_CLIENT_ERROR(conn->error_info, rset_header.error_info); in mysqlnd_query_read_result_set_header()
420 conn->error_info->error_no = 0; in mysqlnd_query_read_result_set_header()
741 COPY_CLIENT_ERROR(conn->error_info, row_packet->error_info); in MYSQLND_METHOD()
742 … DBG_ERR_FMT("errorno=%u error=%s", row_packet->error_info.error_no, row_packet->error_info.error); in MYSQLND_METHOD()
881 COPY_CLIENT_ERROR(conn->error_info, row_packet->error_info); in MYSQLND_METHOD()
924 SET_EMPTY_ERROR(conn->error_info); in MYSQLND_METHOD()
957 SET_OOM_ERROR(conn->error_info); in MYSQLND_METHOD()
1165 SET_OOM_ERROR(conn->error_info); in MYSQLND_METHOD()
1385 COPY_CLIENT_ERROR(&set->error_info, row_packet.error_info); in MYSQLND_METHOD()
[all …]
H A Dmysqlnd_wireprotocol.h190 MYSQLND_ERROR_INFO error_info; member
202 MYSQLND_ERROR_INFO error_info; member
227 MYSQLND_ERROR_INFO error_info; member
249 MYSQLND_ERROR_INFO error_info; member
261 MYSQLND_ERROR_INFO error_info; member
H A Dmysqlnd_connection.c341 if (conn->error_info) { in MYSQLND_METHOD_PRIVATE()
343 conn->error_info = NULL; in MYSQLND_METHOD_PRIVATE()
611 SET_EMPTY_ERROR(conn->error_info);
713 SET_OOM_ERROR(conn->error_info);
793 if (!conn->error_info->error_no) {
794 …SET_CLIENT_ERROR(conn->error_info, CR_CONNECTION_ERROR, UNKNOWN_SQLSTATE, conn->error_info->error);
964 return conn->error_info->error_no;
973 return conn->error_info->error;
982 return conn->error_info->sqlstate[0] ? conn->error_info->sqlstate:MYSQLND_SQLSTATE_NULL;
1778 SET_OOM_ERROR(conn->error_info);
[all …]
H A Dmysqlnd_structs.h365 …init)(MYSQLND_VIO * const vio, MYSQLND_STATS * const stats, MYSQLND_ERROR_INFO * const error_info);
366 …(MYSQLND_VIO * const vio, MYSQLND_STATS * const conn_stats, MYSQLND_ERROR_INFO * const error_info);
425 …tory__get_pfc)(const zend_bool persistent, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * error_info);
946 MYSQLND_ERROR_INFO * error_info; member
1040 MYSQLND_ERROR_INFO * error_info,
1048 MYSQLND_ERROR_INFO * const error_info,
1055 MYSQLND_ERROR_INFO * const error_info,
1065 MYSQLND_ERROR_INFO * error_info,
1117 …(MYSQLND_PFC * const pfc, MYSQLND_STATS * const conn_stats, MYSQLND_ERROR_INFO * const error_info);
1203 MYSQLND_ERROR_INFO error_info; \
[all …]
H A Dmysqlnd_ext_plugin.h116 } error_info; member
161 #define mysqlnd_error_info_get_methods() mysqlnd_plugin_methods_xetters.error_info.get()
162 #define mysqlnd_error_info_set_methods(m) mysqlnd_plugin_methods_xetters.error_info.set((m))
H A Dmysqlnd_result_meta.c66 if (field_packet.error_info.error_no) { in MYSQLND_METHOD()
67 COPY_CLIENT_ERROR(conn->error_info, field_packet.error_info); in MYSQLND_METHOD()
H A Dmysqlnd_ps_codec.c618 SET_OOM_ERROR(stmt->error_info); in mysqlnd_stmt_execute_prepare_param_types()
722 SET_OOM_ERROR(stmt->error_info); in mysqlnd_stmt_execute_calculate_param_values_size()
737 SET_OOM_ERROR(stmt->error_info); in mysqlnd_stmt_execute_calculate_param_values_size()
772 SET_OOM_ERROR(stmt->error_info); in mysqlnd_stmt_execute_calculate_param_values_size()
882 SET_OOM_ERROR(stmt->error_info); in mysqlnd_stmt_execute_store_params()
908 SET_OOM_ERROR(stmt->error_info); in mysqlnd_stmt_execute_store_params()
924 SET_OOM_ERROR(stmt->error_info); in mysqlnd_stmt_execute_store_params()
/PHP-8.0/ext/pdo_mysql/tests/
H A Dpdo_mysql_prepare_native.phpt19 if ($suppress_warning || (is_array($error_info) && isset($error_info['prepare'])))
24 if (is_array($error_info) && isset($error_info['prepare'])) {
27 if (isset($error_info['prepare']['sqlstate']) &&
28 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
34 if (isset($error_info['prepare']['mysql']) &&
35 ($error_info['prepare']['mysql'] !== $tmp[1])) {
51 if ($suppress_warning || (is_array($error_info) && isset($error_info['execute'])))
67 if (is_array($error_info) && isset($error_info['execute'])) {
69 if (isset($error_info['execute']['sqlstate']) &&
76 if (isset($error_info['execute']['mysql']) &&
[all …]
H A Dpdo_mysql_prepare_emulated.phpt19 if (is_array($error_info) && isset($error_info['prepare']))
24 if (is_array($error_info) && isset($error_info['prepare'])) {
27 if (isset($error_info['prepare']['sqlstate']) &&
28 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
34 if (isset($error_info['prepare']['mysql']) &&
35 ($error_info['prepare']['mysql'] !== $tmp[1])) {
47 if (is_array($error_info) && isset($error_info['execute']))
56 if (is_array($error_info) && isset($error_info['execute'])) {
59 if (isset($error_info['execute']['sqlstate']) &&
66 if (isset($error_info['execute']['mysql']) &&
[all …]
/PHP-8.0/ext/mysqli/
H A Dmysqli_nonapi.c498 …LND_ERROR_LIST_ELEMENT *) zend_llist_get_first_ex(&mysql->mysql->data->error_info->error_list, &po…
500 …message = (MYSQLND_ERROR_LIST_ELEMENT *) zend_llist_get_next_ex(&mysql->mysql->data->error_info->e…
539 if (stmt->stmt && stmt->stmt->data && stmt->stmt->data->error_info) {
543 …SQLND_ERROR_LIST_ELEMENT *) zend_llist_get_first_ex(&stmt->stmt->data->error_info->error_list, &po…
545 …message = (MYSQLND_ERROR_LIST_ELEMENT *) zend_llist_get_next_ex(&stmt->stmt->data->error_info->err…
604 MYSQLND_ERROR_INFO error_info = *mysql->mysql->data->error_info;
605 mysql->mysql->data->error_info->error_list.head = NULL;
606 mysql->mysql->data->error_info->error_list.tail = NULL;
607 mysql->mysql->data->error_info->error_list.count = 0;
618 zend_llist_clean(&mysql->mysql->data->error_info->error_list);
[all …]
H A Dmysqli_prop.c199 …LND_ERROR_LIST_ELEMENT *) zend_llist_get_first_ex(&mysql->mysql->data->error_info->error_list, &po… in link_error_list_read()
201 …QLND_ERROR_LIST_ELEMENT *) zend_llist_get_next_ex(&mysql->mysql->data->error_info->error_list, &po… in link_error_list_read()
360 if (stmt->stmt->data && stmt->stmt->data->error_info) { in stmt_error_list_read()
363 …SQLND_ERROR_LIST_ELEMENT *) zend_llist_get_first_ex(&stmt->stmt->data->error_info->error_list, &po… in stmt_error_list_read()
365 …message = (MYSQLND_ERROR_LIST_ELEMENT *) zend_llist_get_next_ex(&stmt->stmt->data->error_info->err… in stmt_error_list_read()
H A Dmysqli_api.c1796 MYSQLND_ERROR_INFO error_info = *mysql->mysql->data->error_info;
1797 mysql->mysql->data->error_info->error_list.head = NULL;
1798 mysql->mysql->data->error_info->error_list.tail = NULL;
1799 mysql->mysql->data->error_info->error_list.count = 0;
1810 zend_llist_clean(&mysql->mysql->data->error_info->error_list);
1811 *mysql->mysql->data->error_info = error_info;
/PHP-8.0/ext/pdo/
H A Dpdo_dbh.c41 zval error_info,pdo_exception; in pdo_throw_exception() local
45 array_init(&error_info); in pdo_throw_exception()
47 add_next_index_string(&error_info, *pdo_error); in pdo_throw_exception()
48 add_next_index_long(&error_info, driver_errcode); in pdo_throw_exception()
49 add_next_index_string(&error_info, driver_errmsg); in pdo_throw_exception()
52 …ty(php_pdo_get_exception(), Z_OBJ(pdo_exception), "errorInfo", sizeof("errorInfo")-1, &error_info); in pdo_throw_exception()
62 zval_ptr_dtor(&error_info); in pdo_throw_exception()

Completed in 117 milliseconds