Home
last modified time | relevance | path

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

/PHP-5.4/ext/mysqlnd/
H A Dmysqlnd_priv.h128 #define SET_EMPTY_ERROR(error_info) \ argument
130 (error_info).error_no = 0; \
131 (error_info).error[0] = '\0'; \
132 strlcpy((error_info).sqlstate, "00000", sizeof((error_info).sqlstate)); \
133 if ((error_info).error_list) { \
142 SET_EMPTY_ERROR((error_info)); \
144 (error_info).error_no = (a); \
145 strlcpy((error_info).sqlstate, (b), sizeof((error_info).sqlstate)); \
146 strlcpy((error_info).error, (c), sizeof((error_info).error)); \
147 if ((error_info).error_list) {\
[all …]
H A Dmysqlnd_auth.c64 SET_OOM_ERROR(*conn->error_info); in mysqlnd_auth_handshake()
71 SET_OOM_ERROR(*conn->error_info); in mysqlnd_auth_handshake()
120 SET_CLIENT_ERROR(*conn->error_info, CR_UNKNOWN_ERROR, UNKNOWN_SQLSTATE, mysqlnd_old_passwd); in mysqlnd_auth_handshake()
135 …strlcpy(conn->error_info->sqlstate, auth_resp_packet->sqlstate, sizeof(conn->error_info->sqlstate)… in mysqlnd_auth_handshake()
185 SET_OOM_ERROR(*conn->error_info); in mysqlnd_auth_change_user()
192 SET_OOM_ERROR(*conn->error_info); in mysqlnd_auth_change_user()
208 SET_OOM_ERROR(*conn->error_info); in mysqlnd_auth_change_user()
235 COPY_CLIENT_ERROR(*conn->error_info, chg_user_resp->error_info); in mysqlnd_auth_change_user()
256 if (conn->error_info->error_no) { in mysqlnd_auth_change_user()
270 SET_OOM_ERROR(*conn->error_info); in mysqlnd_auth_change_user()
[all …]
H A Dmysqlnd_loaddata.c175 ret = net->m.send_ex(net, empty_packet, 0, conn->stats, conn->error_info TSRMLS_CC); in mysqlnd_handle_local_infile()
188 char tmp_buf[sizeof(conn->error_info->error)]; in mysqlnd_handle_local_infile()
193 SET_CLIENT_ERROR(*conn->error_info, tmp_error_no, UNKNOWN_SQLSTATE, tmp_buf); in mysqlnd_handle_local_infile()
195 ret = net->m.send_ex(net, empty_packet, 0, conn->stats, conn->error_info TSRMLS_CC); in mysqlnd_handle_local_infile()
201 if ((ret = net->m.send_ex(net, buf, bufsize, conn->stats, conn->error_info TSRMLS_CC)) == 0) { in mysqlnd_handle_local_infile()
203 SET_CLIENT_ERROR(*conn->error_info, CR_SERVER_LOST, UNKNOWN_SQLSTATE, lost_conn); in mysqlnd_handle_local_infile()
209 if ((ret = net->m.send_ex(net, empty_packet, 0, conn->stats, conn->error_info TSRMLS_CC)) == 0) { in mysqlnd_handle_local_infile()
210 SET_CLIENT_ERROR(*conn->error_info, CR_SERVER_LOST, UNKNOWN_SQLSTATE, lost_conn); in mysqlnd_handle_local_infile()
216 char tmp_buf[sizeof(conn->error_info->error)]; in mysqlnd_handle_local_infile()
221 SET_CLIENT_ERROR(*conn->error_info, tmp_error_no, UNKNOWN_SQLSTATE, tmp_buf); in mysqlnd_handle_local_infile()
H A Dmysqlnd_driver.c135 data->error_info = &(data->error_info_impl); in MYSQLND_METHOD()
149 data->error_info->error_list = mnd_pecalloc(1, sizeof(zend_llist), persistent); in MYSQLND_METHOD()
150 if (!data->error_info->error_list) { in MYSQLND_METHOD()
154 …zend_llist_init(data->error_info->error_list, sizeof(MYSQLND_ERROR_LIST_ELEMENT), (llist_dtor_func… in MYSQLND_METHOD()
213 stmt->error_info = &(stmt->error_info_impl); in MYSQLND_METHOD()
229 stmt->error_info->error_list = mnd_pecalloc(1, sizeof(zend_llist), ret->persistent); in MYSQLND_METHOD()
230 if (!stmt->error_info->error_list) { in MYSQLND_METHOD()
239 SET_OOM_ERROR(*conn->error_info); in MYSQLND_METHOD()
251 …io_channel)(zend_bool persistent, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * error_info TSRMLS_DC) in MYSQLND_METHOD()
262 if (PASS != net->m.init(net, stats, error_info TSRMLS_CC)) { in MYSQLND_METHOD()
[all …]
H A Dmysqlnd_ps.c113 COPY_CLIENT_ERROR(*conn->error_info, result->stored_data->error_info); in MYSQLND_METHOD()
180 COPY_CLIENT_ERROR(*stmt->error_info, *conn->error_info); in MYSQLND_METHOD()
302 COPY_CLIENT_ERROR(*stmt->error_info, prepare_resp->error_info); in mysqlnd_stmt_read_prepare_response()
303 COPY_CLIENT_ERROR(*stmt->conn->error_info, prepare_resp->error_info); in mysqlnd_stmt_read_prepare_response()
488 COPY_CLIENT_ERROR(*stmt->error_info, *conn->error_info); in mysqlnd_stmt_execute_parse_response()
692 COPY_CLIENT_ERROR(*stmt->error_info, *conn->error_info); in MYSQLND_METHOD()
910 COPY_CLIENT_ERROR(*stmt->error_info, row_packet->error_info); in mysqlnd_stmt_fetch_row_unbuffered()
1022 COPY_CLIENT_ERROR(*stmt->error_info, *stmt->conn->error_info); in mysqlnd_fetch_stmt_row_cursor()
1227 COPY_CLIENT_ERROR(*stmt->error_info, *conn->error_info); in MYSQLND_METHOD()
1342 COPY_CLIENT_ERROR(*stmt->error_info, *conn->error_info); in MYSQLND_METHOD()
[all …]
H A Dmysqlnd_net.c67 MYSQLND_STATS * const stats, MYSQLND_ERROR_INFO * const error_info TSRMLS_DC) in MYSQLND_METHOD()
97 MYSQLND_STATS * const stats, MYSQLND_ERROR_INFO * const error_info TSRMLS_DC) in MYSQLND_METHOD()
110 MYSQLND_STATS * const conn_stats, MYSQLND_ERROR_INFO * const error_info TSRMLS_DC) in MYSQLND_METHOD()
256 MYSQLND_STATS * const conn_stats, MYSQLND_ERROR_INFO * const error_info TSRMLS_DC) in MYSQLND_METHOD()
264 net->m.close_stream(net, conn_stats, error_info TSRMLS_CC); in MYSQLND_METHOD()
270 net->m.post_connect_set_opt(net, scheme, scheme_len, conn_stats, error_info TSRMLS_CC); in MYSQLND_METHOD()
348 conn_stats, error_info TSRMLS_CC); in MYSQLND_METHOD()
639 DBG_RETURN(net->m.receive_ex(net, p, to_read, conn_stats, error_info TSRMLS_CC)); in MYSQLND_METHOD()
644 DBG_RETURN(net->m.network_read_ex(net, p, to_read, conn_stats, error_info TSRMLS_CC)); in MYSQLND_METHOD()
994 net->m.close_stream(net, stats, error_info TSRMLS_CC); in MYSQLND_METHOD()
[all …]
H A Dmysqlnd_net.h26 …d_net_init(zend_bool persistent, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * error_info TSRMLS_DC);
27 …et_free(MYSQLND_NET * const net, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * error_info TSRMLS_DC);
H A Dmysqlnd.c163 if (conn->error_info->error_list) { in MYSQLND_METHOD()
222 SET_OOM_ERROR(*conn->error_info); in MYSQLND_METHOD()
334 SET_EMPTY_ERROR(*conn->error_info); in MYSQLND_METHOD()
338 SET_OOM_ERROR(*conn->error_info); in MYSQLND_METHOD()
432 SET_OOM_ERROR(*conn->error_info); in mysqlnd_switch_to_ssl_if_needed()
746 SET_OOM_ERROR(*conn->error_info);
960 if (!conn->error_info->error_no) {
961 …SET_CLIENT_ERROR(*conn->error_info, CR_CONNECTION_ERROR, UNKNOWN_SQLSTATE, conn->error_info->error…
963 conn->error_info->error_no, conn->error_info->error, conn->scheme);
1441 return conn->error_info->error;
[all …]
H A Dmysqlnd_result.c336 SET_OOM_ERROR(*conn->error_info); in MYSQLND_METHOD()
378 SET_OOM_ERROR(*conn->error_info); in mysqlnd_query_read_result_set_header()
405 COPY_CLIENT_ERROR(*conn->error_info, rset_header->error_info); in mysqlnd_query_read_result_set_header()
412 conn->error_info->error_no = 0; in mysqlnd_query_read_result_set_header()
710 COPY_CLIENT_ERROR(*result->conn->error_info, row_packet->error_info); in mysqlnd_fetch_row_unbuffered_c()
711 … DBG_ERR_FMT("errorno=%u error=%s", row_packet->error_info.error_no, row_packet->error_info.error); in mysqlnd_fetch_row_unbuffered_c()
846 COPY_CLIENT_ERROR(*result->conn->error_info, row_packet->error_info); in mysqlnd_fetch_row_unbuffered()
1122 SET_OOM_ERROR(*conn->error_info); in MYSQLND_METHOD()
1139 SET_OOM_ERROR(*conn->error_info); in MYSQLND_METHOD()
1235 COPY_CLIENT_ERROR(set->error_info, row_packet->error_info); in MYSQLND_METHOD()
[all …]
H A Dmysqlnd_wireprotocol.h201 MYSQLND_ERROR_INFO error_info; member
214 MYSQLND_ERROR_INFO error_info; member
243 MYSQLND_ERROR_INFO error_info; member
267 MYSQLND_ERROR_INFO error_info; member
279 MYSQLND_ERROR_INFO error_info; member
H A Dmysqlnd_wireprotocol.c1007 packet->error_info.error, sizeof(packet->error_info.error), in php_mysqlnd_rset_header_read()
1008 &packet->error_info.error_no, packet->error_info.sqlstate in php_mysqlnd_rset_header_read()
1034 SET_OOM_ERROR(*conn->error_info); in php_mysqlnd_rset_header_read()
1149 packet->error_info.error, sizeof(packet->error_info.error), in php_mysqlnd_rset_field_read()
1150 &packet->error_info.error_no, packet->error_info.sqlstate in php_mysqlnd_rset_field_read()
1152 DBG_ERR_FMT("Server error : (%u) %s", packet->error_info.error_no, packet->error_info.error); in php_mysqlnd_rset_field_read()
1238 SET_OOM_ERROR(*conn->error_info); in php_mysqlnd_rset_field_read()
1250 SET_OOM_ERROR(*conn->error_info); in php_mysqlnd_rset_field_read()
1788 packet->error_info.error, in php_mysqlnd_rowp_read()
1935 packet->error_info.error, in php_mysqlnd_prepare_read()
[all …]
H A Dmysqlnd_structs.h277 … const size_t count, MYSQLND_STATS * const stats, MYSQLND_ERROR_INFO * const error_info TSRMLS_DC);
278 … const size_t count, MYSQLND_STATS * const stats, MYSQLND_ERROR_INFO * const error_info TSRMLS_DC);
279 …t size_t count, MYSQLND_STATS * const conn_stats, MYSQLND_ERROR_INFO * const error_info TSRMLS_DC);
280 …t size_t count, MYSQLND_STATS * const conn_stats, MYSQLND_ERROR_INFO * const error_info TSRMLS_DC);
281 …LND_NET * const net, MYSQLND_STATS * const stats, MYSQLND_ERROR_INFO * const error_info TSRMLS_DC);
282 …ET * const net, MYSQLND_STATS * const conn_stats, MYSQLND_ERROR_INFO * const error_info TSRMLS_DC);
284 …ET * const net, MYSQLND_STATS * const conn_stats, MYSQLND_ERROR_INFO * const error_info TSRMLS_DC);
380 …o_channel)(zend_bool persistent, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * error_info TSRMLS_DC);
846 MYSQLND_ERROR_INFO * error_info; member
928 MYSQLND_ERROR_INFO error_info; member
[all …]
H A Dmysqlnd_result_meta.c154 SET_OOM_ERROR(*conn->error_info); in MYSQLND_METHOD()
172 if (field_packet->error_info.error_no) { in MYSQLND_METHOD()
173 COPY_CLIENT_ERROR(*conn->error_info, field_packet->error_info); in MYSQLND_METHOD()
H A Dmysqlnd_ps_codec.c652 SET_OOM_ERROR(*stmt->error_info); in mysqlnd_stmt_execute_store_params()
686 SET_OOM_ERROR(*stmt->error_info); in mysqlnd_stmt_execute_store_params()
735 SET_OOM_ERROR(*stmt->error_info); in mysqlnd_stmt_execute_store_params()
797 SET_OOM_ERROR(*stmt->error_info); in mysqlnd_stmt_execute_store_params()
811 SET_OOM_ERROR(*stmt->error_info); in mysqlnd_stmt_execute_store_params()
858 SET_OOM_ERROR(*stmt->error_info); in mysqlnd_stmt_execute_store_params()
883 SET_OOM_ERROR(*stmt->error_info); in mysqlnd_stmt_execute_store_params()
/PHP-5.4/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-5.4/ext/mysqli/
H A Dmysqli_nonapi.c434 if (mysql->mysql->data->error_info->error_list) {
437 …QLND_ERROR_LIST_ELEMENT *) zend_llist_get_first_ex(mysql->mysql->data->error_info->error_list, &po…
439 …message = (MYSQLND_ERROR_LIST_ELEMENT *) zend_llist_get_next_ex(mysql->mysql->data->error_info->er…
478 if (stmt->stmt && stmt->stmt->data && stmt->stmt->data->error_info->error_list) {
481 …YSQLND_ERROR_LIST_ELEMENT *) zend_llist_get_first_ex(stmt->stmt->data->error_info->error_list, &po…
483 …message = (MYSQLND_ERROR_LIST_ELEMENT *) zend_llist_get_next_ex(stmt->stmt->data->error_info->erro…
542 MYSQLND_ERROR_INFO error_info = *mysql->mysql->data->error_info;
553 *mysql->mysql->data->error_info = error_info;
H A Dmysqli_prop.c208 if (mysql->mysql->data->error_info->error_list) { in link_error_list_read()
211 …QLND_ERROR_LIST_ELEMENT *) zend_llist_get_first_ex(mysql->mysql->data->error_info->error_list, &po… in link_error_list_read()
213 …message = (MYSQLND_ERROR_LIST_ELEMENT *) zend_llist_get_next_ex(mysql->mysql->data->error_info->er… in link_error_list_read()
405 if (stmt->stmt->data && stmt->stmt->data->error_info->error_list) { in stmt_error_list_read()
408 …YSQLND_ERROR_LIST_ELEMENT *) zend_llist_get_first_ex(stmt->stmt->data->error_info->error_list, &po… in stmt_error_list_read()
410 …message = (MYSQLND_ERROR_LIST_ELEMENT *) zend_llist_get_next_ex(stmt->stmt->data->error_info->erro… in stmt_error_list_read()
H A Dmysqli_api.c1813 MYSQLND_ERROR_INFO error_info = *mysql->mysql->data->error_info;
1824 *mysql->mysql->data->error_info = error_info;

Completed in 95 milliseconds