Home
last modified time | relevance | path

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

12

/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_prepare_emulated_anonymous_placeholders.phpt18 if (is_array($error_info) && isset($error_info['prepare']))
23 if (is_array($error_info) && isset($error_info['prepare'])) {
26 if (isset($error_info['prepare']['sqlstate']) &&
27 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
33 if (isset($error_info['prepare']['mysql']) &&
34 ($error_info['prepare']['mysql'] !== $tmp[1])) {
46 if (is_array($error_info) && isset($error_info['execute']))
55 if (is_array($error_info) && isset($error_info['execute'])) {
58 if (isset($error_info['execute']['sqlstate']) &&
65 if (isset($error_info['execute']['mysql']) &&
[all …]
H A Dpdo_mysql_prepare_emulated_myisam.phpt18 if (is_array($error_info) && isset($error_info['prepare']))
23 if (is_array($error_info) && isset($error_info['prepare'])) {
26 if (isset($error_info['prepare']['sqlstate']) &&
27 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
33 if (isset($error_info['prepare']['mysql']) &&
34 ($error_info['prepare']['mysql'] !== $tmp[1])) {
46 if (is_array($error_info) && isset($error_info['execute']))
55 if (is_array($error_info) && isset($error_info['execute'])) {
58 if (isset($error_info['execute']['sqlstate']) &&
65 if (isset($error_info['execute']['mysql']) &&
[all …]
H A Dpdo_mysql_prepare_emulated_myisam_index.phpt20 if (is_array($error_info) && isset($error_info['prepare']))
25 if (is_array($error_info) && isset($error_info['prepare'])) {
28 if (isset($error_info['prepare']['sqlstate']) &&
29 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
35 if (isset($error_info['prepare']['mysql']) &&
36 ($error_info['prepare']['mysql'] !== $tmp[1])) {
48 if (is_array($error_info) && isset($error_info['execute']))
57 if (is_array($error_info) && isset($error_info['execute'])) {
60 if (isset($error_info['execute']['sqlstate']) &&
67 if (isset($error_info['execute']['mysql']) &&
[all …]
H A Dpdo_mysql_prepare_native.phpt17 if ($suppress_warning || (is_array($error_info) && isset($error_info['prepare'])))
22 if (is_array($error_info) && isset($error_info['prepare'])) {
25 if (isset($error_info['prepare']['sqlstate']) &&
26 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
32 if (isset($error_info['prepare']['mysql']) &&
33 ($error_info['prepare']['mysql'] !== $tmp[1])) {
49 if ($suppress_warning || (is_array($error_info) && isset($error_info['execute'])))
65 if (is_array($error_info) && isset($error_info['execute'])) {
67 if (isset($error_info['execute']['sqlstate']) &&
74 if (isset($error_info['execute']['mysql']) &&
[all …]
H A Dpdo_mysql_prepare_native_myisam.phpt17 if ($suppress_warning || (is_array($error_info) && isset($error_info['prepare'])))
22 if (is_array($error_info) && isset($error_info['prepare'])) {
25 if (isset($error_info['prepare']['sqlstate']) &&
26 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
32 if (isset($error_info['prepare']['mysql']) &&
33 ($error_info['prepare']['mysql'] !== $tmp[1])) {
49 if ($suppress_warning || (is_array($error_info) && isset($error_info['execute'])))
65 if (is_array($error_info) && isset($error_info['execute'])) {
67 if (isset($error_info['execute']['sqlstate']) &&
74 if (isset($error_info['execute']['mysql']) &&
[all …]
H A Dpdo_mysql_prepare_native_myisam_index.phpt17 if ($suppress_warning || (is_array($error_info) && isset($error_info['prepare'])))
22 if (is_array($error_info) && isset($error_info['prepare'])) {
25 if (isset($error_info['prepare']['sqlstate']) &&
26 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
32 if (isset($error_info['prepare']['mysql']) &&
33 ($error_info['prepare']['mysql'] !== $tmp[1])) {
49 if ($suppress_warning || (is_array($error_info) && isset($error_info['execute'])))
65 if (is_array($error_info) && isset($error_info['execute'])) {
67 if (isset($error_info['execute']['sqlstate']) &&
74 if (isset($error_info['execute']['mysql']) &&
[all …]
H A Dpdo_mysql_prepare_emulated.phpt18 if (is_array($error_info) && isset($error_info['prepare']))
23 if (is_array($error_info) && isset($error_info['prepare'])) {
26 if (isset($error_info['prepare']['sqlstate']) &&
27 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
33 if (isset($error_info['prepare']['mysql']) &&
34 ($error_info['prepare']['mysql'] !== $tmp[1])) {
46 if (is_array($error_info) && isset($error_info['execute']))
55 if (is_array($error_info) && isset($error_info['execute'])) {
58 if (isset($error_info['execute']['sqlstate']) &&
65 if (isset($error_info['execute']['mysql']) &&
[all …]
H A Dpdo_mysql_prepare_native_anonymous_placeholder.phpt17 if ($suppress_warning || (is_array($error_info) && isset($error_info['prepare'])))
22 if (is_array($error_info) && isset($error_info['prepare'])) {
25 if (isset($error_info['prepare']['sqlstate']) &&
26 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
32 if (isset($error_info['prepare']['mysql']) &&
33 ($error_info['prepare']['mysql'] !== $tmp[1])) {
49 if ($suppress_warning || (is_array($error_info) && isset($error_info['execute'])))
65 if (is_array($error_info) && isset($error_info['execute'])) {
67 if (isset($error_info['execute']['sqlstate']) &&
74 if (isset($error_info['execute']['mysql']) &&
[all …]
/php-src/ext/mysqlnd/
H A Dmysqlnd_loaddata.c163 SET_CLIENT_ERROR(conn->error_info, CR_LOAD_DATA_LOCAL_INFILE_REJECTED, UNKNOWN_SQLSTATE, in mysqlnd_handle_local_infile()
190 SET_CLIENT_ERROR(conn->error_info, CR_LOAD_DATA_LOCAL_INFILE_REJECTED, UNKNOWN_SQLSTATE, in mysqlnd_handle_local_infile()
198 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile()
211 char tmp_buf[sizeof(conn->error_info->error)]; in mysqlnd_handle_local_infile()
216 SET_CLIENT_ERROR(conn->error_info, tmp_error_no, UNKNOWN_SQLSTATE, tmp_buf); in mysqlnd_handle_local_infile()
218 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile()
226 SET_CLIENT_ERROR(conn->error_info, CR_SERVER_LOST, UNKNOWN_SQLSTATE, lost_conn); in mysqlnd_handle_local_infile()
233 SET_CLIENT_ERROR(conn->error_info, CR_SERVER_LOST, UNKNOWN_SQLSTATE, lost_conn); in mysqlnd_handle_local_infile()
239 char tmp_buf[sizeof(conn->error_info->error)]; in mysqlnd_handle_local_infile()
244 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()
128 COPY_CLIENT_ERROR(conn->error_info, result->stored_data->error_info); in MYSQLND_METHOD()
194 COPY_CLIENT_ERROR(stmt->error_info, *conn->error_info); in MYSQLND_METHOD()
314 COPY_CLIENT_ERROR(stmt->error_info, prepare_resp.error_info); in mysqlnd_stmt_read_prepare_response()
315 COPY_CLIENT_ERROR(conn->error_info, prepare_resp.error_info); in mysqlnd_stmt_read_prepare_response()
421 COPY_CLIENT_ERROR(stmt->error_info, *conn->error_info); in MYSQLND_METHOD()
490 COPY_CLIENT_ERROR(stmt->error_info, *conn->error_info); in mysqlnd_stmt_execute_parse_response()
707 COPY_CLIENT_ERROR(stmt->error_info, *conn->error_info); in MYSQLND_METHOD()
943 COPY_CLIENT_ERROR(stmt->error_info, *conn->error_info); in MYSQLND_METHOD()
1049 COPY_CLIENT_ERROR(stmt->error_info, *conn->error_info); in MYSQLND_METHOD()
[all …]
H A Dmysqlnd_wireprotocol.c343 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_greet_read() local
510 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
766 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_change_auth_response_write() local
804 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_ok_read() local
898 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_eof_read() local
966 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_cmd_write() local
1025 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_rset_header_read() local
1154 MYSQLND_ERROR_INFO * error_info = conn->error_info; in php_mysqlnd_rset_field_read() local
1734 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()
317 MYSQLND_STATS * const conn_stats, MYSQLND_ERROR_INFO * const error_info) in MYSQLND_METHOD()
367 DBG_RETURN(pfc->data->m.receive(pfc, vio, p, to_read, conn_stats, error_info)); in MYSQLND_METHOD()
372 DBG_RETURN(vio->data->m.network_read(vio, p, to_read, conn_stats, error_info)); in MYSQLND_METHOD()
504 pfc = factory->get_protocol_frame_codec(persistent, stats, error_info); in mysqlnd_pfc_init()
[all …]
H A Dmysqlnd_commands.c42 conn->error_info, in MYSQLND_METHOD()
68 conn->error_info, in MYSQLND_METHOD()
95 conn->error_info, in MYSQLND_METHOD()
131 conn->error_info, in MYSQLND_METHOD()
162 conn->error_info, in MYSQLND_METHOD()
199 conn->error_info, in MYSQLND_METHOD()
239 conn->error_info, in MYSQLND_METHOD()
265 conn->error_info, in MYSQLND_METHOD()
287 conn->error_info, in MYSQLND_METHOD()
313 conn->error_info, in MYSQLND_METHOD()
[all …]
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_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_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()
133 MYSQLND_STATS * const conn_stats, MYSQLND_ERROR_INFO * const error_info) in MYSQLND_METHOD()
221 SET_CLIENT_ERROR(error_info, in MYSQLND_METHOD()
299 MYSQLND_ERROR_INFO * const error_info) in MYSQLND_METHOD()
330 vio->data->m.close_stream(vio, conn_stats, error_info); in MYSQLND_METHOD()
332 open_stream = vio->data->m.get_open_stream(vio, scheme, error_info); in MYSQLND_METHOD()
336 vio->data->m.post_connect_set_opt(vio, scheme, conn_stats, error_info); in MYSQLND_METHOD()
717 vio->data->m.close_stream(vio, stats, error_info); in MYSQLND_METHOD()
799 vio = factory->get_vio(persistent, stats, error_info); in mysqlnd_vio_init()
[all …]
H A Dmysqlnd_driver.c125 data->error_info = &data->error_info_impl; in MYSQLND_METHOD()
143 data->protocol_frame_codec = mysqlnd_pfc_init(persistent, factory, data->stats, data->error_info); in MYSQLND_METHOD()
144 data->vio = mysqlnd_vio_init(persistent, factory, data->stats, data->error_info); in MYSQLND_METHOD()
202 stmt->error_info = &stmt->error_info_impl; in MYSQLND_METHOD()
224 …ct_factory, get_pfc)(const bool persistent, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * error_info) in MYSQLND_METHOD()
237 pfc->data->m.init(pfc, stats, error_info); in MYSQLND_METHOD()
246 …ct_factory, get_vio)(const bool persistent, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * error_info) in MYSQLND_METHOD()
259 vio->data->m.init(vio, stats, error_info); in MYSQLND_METHOD()
H A Dmysqlnd_result.c207 COPY_CLIENT_ERROR(conn->error_info, rset_header.error_info); in mysqlnd_query_read_result_set_header()
214 conn->error_info->error_no = 0; in mysqlnd_query_read_result_set_header()
295 SET_OOM_ERROR(conn->error_info); in mysqlnd_query_read_result_set_header()
472 COPY_CLIENT_ERROR(conn->error_info, row_packet->error_info); in MYSQLND_METHOD()
474 COPY_CLIENT_ERROR(set->stmt->error_info, row_packet->error_info); in MYSQLND_METHOD()
476 … DBG_ERR_FMT("errorno=%u error=%s", row_packet->error_info.error_no, row_packet->error_info.error); in MYSQLND_METHOD()
517 SET_EMPTY_ERROR(conn->error_info); in MYSQLND_METHOD()
710 SET_OOM_ERROR(conn->error_info); in MYSQLND_METHOD()
724 COPY_CLIENT_ERROR(&set->error_info, row_packet.error_info); in MYSQLND_METHOD()
768 COPY_CLIENT_ERROR(conn->error_info, result->stored_data->error_info); in MYSQLND_METHOD()
[all …]
H A Dmysqlnd_auth.c86 SET_CLIENT_ERROR(conn->error_info, CR_NOT_IMPLEMENTED, UNKNOWN_SQLSTATE, msg); in mysqlnd_run_authentication()
117 if (conn->error_info->error_no) { in mysqlnd_run_authentication()
155 DBG_INF_FMT("conn->error_info->error_no = %d", conn->error_info->error_no); in mysqlnd_run_authentication()
156 } while (ret == FAIL && conn->error_info->error_no == 0 && switch_to_auth_protocol != NULL); in mysqlnd_run_authentication()
345 …strlcpy(conn->error_info->sqlstate, auth_resp_packet.sqlstate, sizeof(conn->error_info->sqlstate)); in mysqlnd_auth_handshake()
452 COPY_CLIENT_ERROR(conn->error_info, chg_user_resp.error_info); in mysqlnd_auth_change_user()
473 if (conn->error_info->error_no) { in mysqlnd_auth_change_user()
871 SET_CLIENT_ERROR(conn->error_info, CR_UNKNOWN_ERROR, UNKNOWN_SQLSTATE, in mysqlnd_sha256_get_rsa_key()
1167 SET_CLIENT_ERROR(conn->error_info, CR_UNKNOWN_ERROR, UNKNOWN_SQLSTATE, in mysqlnd_caching_sha2_get_key()
1253 strlcpy(conn->error_info->sqlstate, result_packet.sqlstate, sizeof(conn->error_info->sqlstate)); in mysqlnd_caching_sha2_handle_server_response()
[all …]
H A Dmysqlnd_wireprotocol.h190 MYSQLND_ERROR_INFO error_info; member
202 MYSQLND_ERROR_INFO error_info; member
225 MYSQLND_ERROR_INFO error_info; member
247 MYSQLND_ERROR_INFO error_info; member
259 MYSQLND_ERROR_INFO error_info; member
H A Dmysqlnd_connection.c322 if (conn->error_info) { in MYSQLND_METHOD_PRIVATE()
324 conn->error_info = NULL; in MYSQLND_METHOD_PRIVATE()
575 SET_EMPTY_ERROR(conn->error_info);
729 if (!conn->error_info->error_no) {
871 return conn->error_info->error_no;
880 return conn->error_info->error;
889 return conn->error_info->sqlstate[0] ? conn->error_info->sqlstate:MYSQLND_SQLSTATE_NULL;
1760 SET_OOM_ERROR(conn->error_info);
1806 SET_OOM_ERROR(conn->error_info);
1836 SET_OOM_ERROR(conn->error_info);
[all …]
H A Dmysqlnd_structs.h354 …init)(MYSQLND_VIO * const vio, MYSQLND_STATS * const stats, MYSQLND_ERROR_INFO * const error_info);
355 …(MYSQLND_VIO * const vio, MYSQLND_STATS * const conn_stats, MYSQLND_ERROR_INFO * const error_info);
414 …t_factory__get_pfc)(const bool persistent, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * error_info);
916 MYSQLND_ERROR_INFO * error_info; member
1010 MYSQLND_ERROR_INFO * error_info,
1018 MYSQLND_ERROR_INFO * const error_info,
1025 MYSQLND_ERROR_INFO * const error_info,
1035 MYSQLND_ERROR_INFO * error_info,
1086 …init)(MYSQLND_PFC * const pfc, MYSQLND_STATS * const stats, MYSQLND_ERROR_INFO * const error_info);
1175 MYSQLND_ERROR_INFO error_info; member
[all …]
H A Dmysqlnd_ext_plugin.h114 } error_info; member
159 #define mysqlnd_error_info_get_methods() mysqlnd_plugin_methods_xetters.error_info.get()
160 #define mysqlnd_error_info_set_methods(m) mysqlnd_plugin_methods_xetters.error_info.set((m))
/php-src/ext/mysqli/
H A Dmysqli_nonapi.c477 …LND_ERROR_LIST_ELEMENT *) zend_llist_get_first_ex(&mysql->mysql->data->error_info->error_list, &po…
479 …message = (MYSQLND_ERROR_LIST_ELEMENT *) zend_llist_get_next_ex(&mysql->mysql->data->error_info->e…
501 if (stmt->stmt && stmt->stmt->data && stmt->stmt->data->error_info) {
505 …SQLND_ERROR_LIST_ELEMENT *) zend_llist_get_first_ex(&stmt->stmt->data->error_info->error_list, &po…
507 …message = (MYSQLND_ERROR_LIST_ELEMENT *) zend_llist_get_next_ex(&stmt->stmt->data->error_info->err…
544 MYSQLND_ERROR_INFO error_info = *mysql->mysql->data->error_info; local
545 mysql->mysql->data->error_info->error_list.head = NULL;
546 mysql->mysql->data->error_info->error_list.tail = NULL;
547 mysql->mysql->data->error_info->error_list.count = 0;
551 zend_llist_clean(&mysql->mysql->data->error_info->error_list);
[all …]
H A Dmysqli_prop.c207 …LND_ERROR_LIST_ELEMENT *) zend_llist_get_first_ex(&mysql->mysql->data->error_info->error_list, &po… in link_error_list_read()
209 …message = (MYSQLND_ERROR_LIST_ELEMENT *) zend_llist_get_next_ex(&mysql->mysql->data->error_info->e… in link_error_list_read()
343 if (stmt->stmt->data && stmt->stmt->data->error_info) { in stmt_error_list_read()
346 …SQLND_ERROR_LIST_ELEMENT *) zend_llist_get_first_ex(&stmt->stmt->data->error_info->error_list, &po… in stmt_error_list_read()
348 …message = (MYSQLND_ERROR_LIST_ELEMENT *) zend_llist_get_next_ex(&stmt->stmt->data->error_info->err… in stmt_error_list_read()

Completed in 90 milliseconds

12