Home
last modified time | relevance | path

Searched refs:einfo (Results 1 – 14 of 14) sorted by relevance

/php-src/ext/pdo_dblib/
H A Dpdo_dblib.c84 pdo_dblib_err *einfo; in ZEND_GET_MODULE() local
89 if (!einfo) einfo = &DBLIB_G(err); in ZEND_GET_MODULE()
91 einfo = &DBLIB_G(err); in ZEND_GET_MODULE()
95 einfo->oserr = oserr; in ZEND_GET_MODULE()
96 einfo->dberr = dberr; in ZEND_GET_MODULE()
98 if (einfo->oserrstr) { in ZEND_GET_MODULE()
99 efree(einfo->oserrstr); in ZEND_GET_MODULE()
101 if (einfo->dberrstr) { in ZEND_GET_MODULE()
129 pdo_dblib_err *einfo; in pdo_dblib_msg_handler() local
133 if (!einfo) { in pdo_dblib_msg_handler()
[all …]
H A Ddblib_driver.c37 pdo_dblib_err *einfo = &H->err; in dblib_fetch_error() local
44 einfo = &S->err; in dblib_fetch_error()
47 if (einfo->lastmsg) { in dblib_fetch_error()
48 msg = einfo->lastmsg; in dblib_fetch_error()
53 msg = einfo->dberrstr; in dblib_fetch_error()
57 if (msg == NULL && einfo->dberr == 0 && einfo->oserr == 0 && einfo->severity == 0) { in dblib_fetch_error()
62 msg, einfo->dberr, einfo->severity, stmt ? ZSTR_VAL(stmt->active_query_string) : ""); in dblib_fetch_error()
64 add_next_index_long(info, einfo->dberr); in dblib_fetch_error()
67 add_next_index_long(info, einfo->oserr); in dblib_fetch_error()
68 add_next_index_long(info, einfo->severity); in dblib_fetch_error()
[all …]
/php-src/ext/pdo_odbc/
H A Dodbc_driver.c35 pdo_odbc_errinfo *einfo = &H->einfo; in pdo_odbc_fetch_error_func() local
41 einfo = &S->einfo; in pdo_odbc_fetch_error_func()
46 einfo->what, (long) einfo->last_error, in pdo_odbc_fetch_error_func()
47 einfo->file, einfo->line); in pdo_odbc_fetch_error_func()
62 pdo_odbc_errinfo *einfo = &H->einfo; in pdo_odbc_error() local
69 einfo = &S->einfo; in pdo_odbc_error()
104 *pdo_err, what, einfo->last_error, einfo->last_err_msg); in pdo_odbc_error()
203 strcpy(H->einfo.last_err_msg, S->einfo.last_err_msg); in odbc_handle_preparer()
204 H->einfo.file = S->einfo.file; in odbc_handle_preparer()
205 H->einfo.line = S->einfo.line; in odbc_handle_preparer()
[all …]
H A Dphp_pdo_odbc_int.h123 pdo_odbc_errinfo einfo; member
143 pdo_odbc_errinfo einfo; member
H A Dodbc_stmt.c785 strcpy(S->einfo.last_err_msg, "Unknown Attribute"); in odbc_stmt_set_param()
786 S->einfo.what = "setAttribute"; in odbc_stmt_set_param()
787 strcpy(S->einfo.last_state, "IM001"); in odbc_stmt_set_param()
817 strcpy(S->einfo.last_err_msg, "Unknown Attribute"); in odbc_stmt_get_attr()
818 S->einfo.what = "getAttribute"; in odbc_stmt_get_attr()
819 strcpy(S->einfo.last_state, "IM001"); in odbc_stmt_get_attr()
/php-src/ext/pdo_mysql/
H A Dmysql_driver.c54 einfo = &S->einfo; in _pdo_mysql_error()
57 einfo = &H->einfo; in _pdo_mysql_error()
66 einfo->file = file; in _pdo_mysql_error()
67 einfo->line = line; in _pdo_mysql_error()
69 if (einfo->errmsg) { in _pdo_mysql_error()
71 einfo->errmsg = NULL; in _pdo_mysql_error()
74 if (einfo->errcode) { in _pdo_mysql_error()
116 pdo_throw_exception(einfo->errcode, einfo->errmsg, pdo_err); in _pdo_mysql_error()
127 pdo_mysql_error_info *einfo = &H->einfo; in pdo_mysql_fetch_error_func() local
133 einfo = &S->einfo; in pdo_mysql_fetch_error_func()
[all …]
H A Dphp_pdo_mysql_int.h112 pdo_mysql_error_info einfo; member
123 pdo_mysql_error_info einfo; member
H A Dmysql_statement.c77 if (S->einfo.errmsg) { in pdo_mysql_stmt_dtor()
78 pefree(S->einfo.errmsg, stmt->dbh->is_persistent); in pdo_mysql_stmt_dtor()
79 S->einfo.errmsg = NULL; in pdo_mysql_stmt_dtor()
/php-src/ext/pdo_sqlite/
H A Dsqlite_driver.c35 pdo_sqlite_error_info *einfo = &H->einfo; in _pdo_sqlite_error() local
38 einfo->file = file; in _pdo_sqlite_error()
39 einfo->line = line; in _pdo_sqlite_error()
42 if (einfo->errmsg) { in _pdo_sqlite_error()
78 pdo_throw_exception(einfo->errcode, einfo->errmsg, pdo_err); in _pdo_sqlite_error()
81 return einfo->errcode; in _pdo_sqlite_error()
88 pdo_sqlite_error_info *einfo = &H->einfo; in pdo_sqlite_fetch_error_func() local
90 if (einfo->errcode) { in pdo_sqlite_fetch_error_func()
154 pdo_sqlite_error_info *einfo = &H->einfo; in sqlite_handle_closer() local
165 if (einfo->errmsg) { in sqlite_handle_closer()
[all …]
H A Dphp_pdo_sqlite_int.h50 pdo_sqlite_error_info einfo; member
/php-src/ext/pdo_firebird/
H A Dfirebird_driver.c469 pdo_firebird_error_info *einfo = &H->einfo; in php_firebird_set_error() local
472 if (einfo->errmsg) { in php_firebird_set_error()
474 einfo->errmsg = NULL; in php_firebird_set_error()
475 einfo->errmsg_length = 0; in php_firebird_set_error()
507 einfo->errmsg_length = msg_len; in php_firebird_set_error()
508 einfo->errmsg = pestrndup(msg, einfo->errmsg_length, dbh->is_persistent); in php_firebird_set_error()
518 einfo->sqlcode = sqlcode; in php_firebird_set_error()
553 if (H->einfo.errmsg) { in firebird_handle_closer()
555 H->einfo.errmsg = NULL; in firebird_handle_closer()
1238 if (H->einfo.errmsg && H->einfo.errmsg_length) { in pdo_firebird_fetch_error_func()
[all …]
H A Dphp_pdo_firebird_int.h93 pdo_firebird_error_info einfo; member
/php-src/ext/pdo_pgsql/
H A Dpgsql_driver.c71 pdo_pgsql_error_info *einfo = &H->einfo; in _pdo_pgsql_error() local
74 einfo->errcode = errcode; in _pdo_pgsql_error()
75 einfo->file = file; in _pdo_pgsql_error()
76 einfo->line = line; in _pdo_pgsql_error()
78 if (einfo->errmsg) { in _pdo_pgsql_error()
80 einfo->errmsg = NULL; in _pdo_pgsql_error()
98 pdo_throw_exception(einfo->errcode, einfo->errmsg, pdo_err); in _pdo_pgsql_error()
114 pdo_pgsql_error_info *einfo = &H->einfo; in pdo_pgsql_fetch_error_func() local
116 if (einfo->errcode) { in pdo_pgsql_fetch_error_func()
122 if (einfo->errmsg) { in pdo_pgsql_fetch_error_func()
[all …]
H A Dphp_pdo_pgsql_int.h40 pdo_pgsql_error_info einfo; member

Completed in 97 milliseconds