Searched refs:errcode (Results 1 - 25 of 26) sorted by relevance

12

/PHP_5_3/ext/ereg/regex/
H A Dregerror.c66 int errcode,
73 register int target = errcode &~ REG_ITOA;
77 if (errcode == REG_ATOI)
84 if (errcode&REG_ITOA) {
/PHP_5_3/ext/sqlite3/libsqlite/
H A Dsqlite3ext.h87 int (*errcode)(sqlite3*db); member in struct:sqlite3_api_routines
284 #define sqlite3_errcode sqlite3_api->errcode
/PHP_5_3/ext/imap/
H A Dphp_imap.c5081 PHP_IMAP_EXPORT long mm_diskerror(MAILSTREAM *stream, long errcode, long serious) argument
/PHP_5_3/ext/ldap/
H A Dldap.c1824 /* {{{ proto bool ldap_parse_result(resource link, resource result, int errcode, string matcheddn, string errmsg, array referrals)
1828 zval *link, *result, *errcode, *matcheddn, *errmsg, *referrals; local
1835 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rrz|zzz", &link, &result, &errcode, &matcheddn, &errmsg, &referrals) != SUCCESS) {
1853 zval_dtor(errcode);
1854 ZVAL_LONG(errcode, lerrcode);
2411 ZEND_ARG_INFO(1, errcode)
/PHP_5_3/ext/oci8/
H A Doci8.c1299 OCI_G(errcode) = 0;
1617 sb4 errcode = 0; local
1623 errcode = php_oci_fetch_errmsg(err_p, &errbuf TSRMLS_CC);
1635 errcode = php_oci_fetch_errmsg(err_p, &errbuf TSRMLS_CC);
1644 errcode = php_oci_fetch_errmsg(err_p, &errbuf TSRMLS_CC);
1665 return errcode;
1708 statement->errcode = php_oci_error(statement->err, errstatus TSRMLS_CC);
1709 PHP_OCI_HANDLE_ERROR(statement->connection, statement->errcode);
1716 statement->errcode = php_oci_error(statement->err, errstatus TSRMLS_CC);
1717 PHP_OCI_HANDLE_ERROR(statement->connection, statement->errcode);
[all...]
H A Doci8_collection.c61 PHP_OCI_CALL_RETURN(connection->errcode, OCITypeByName,
78 if (connection->errcode != OCI_SUCCESS) {
83 PHP_OCI_CALL_RETURN(connection->errcode, OCIHandleAlloc, (connection->env, (dvoid **) &dschp1, (ub4) OCI_HTYPE_DESCRIBE, (size_t) 0, (dvoid **) 0));
85 if (connection->errcode != OCI_SUCCESS) {
90 PHP_OCI_CALL_RETURN(connection->errcode, OCIDescribeAny,
103 if (connection->errcode != OCI_SUCCESS) {
108 PHP_OCI_CALL_RETURN(connection->errcode, OCIAttrGet, ((dvoid *) dschp1, (ub4) OCI_HTYPE_DESCRIBE, (dvoid *)&parmp1, (ub4 *)0, (ub4)OCI_ATTR_PARAM, connection->err));
110 if (connection->errcode != OCI_SUCCESS) {
115 PHP_OCI_CALL_RETURN(connection->errcode, OCIAttrGet,
126 if (connection->errcode !
[all...]
H A Doci8_interface.c1626 sb4 errcode = 0; local
1641 error = statement->errcode;
1652 error = connection->errcode;
1659 error = connection->errcode;
1664 error = OCI_G(errcode);
1677 errcode = php_oci_fetch_errmsg(errh, &errbuf TSRMLS_CC);
1679 if (errcode) {
1681 add_assoc_long(return_value, "code", errcode);
1769 PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIAttrSet, ((dvoid *) connection->session, (ub4) OCI_HTYPE_SESSION, (dvoid *) client_id, (ub4) client_id_len, (ub4) OCI_ATTR_CLIENT_IDENTIFIER, OCI_G(err)));
1771 if (OCI_G(errcode) !
[all...]
H A Doci8_lob.c75 PHP_OCI_CALL_RETURN(OCI_G(errcode), OCIDescriptorAlloc, (connection->env, (dvoid*)&(descriptor->descriptor), descriptor->type, (size_t) 0, (dvoid **) 0));
77 if (OCI_G(errcode) != OCI_SUCCESS) {
78 OCI_G(errcode) = php_oci_error(OCI_G(err), OCI_G(errcode) TSRMLS_CC);
79 PHP_OCI_HANDLE_ERROR(connection, OCI_G(errcode));
127 PHP_OCI_CALL_RETURN(connection->errcode, OCILobFileOpen, (connection->svc, connection->err, descriptor->descriptor, OCI_FILE_READONLY));
128 if (connection->errcode != OCI_SUCCESS) {
129 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC);
130 PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
[all...]
H A Doci8_statement.c60 PHP_OCI_CALL_RETURN(connection->errcode, OCIStmtPrepare2,
73 if (connection->errcode != OCI_SUCCESS) {
74 connection->errcode = php_oci_error(connection->err, connection->errcode TSRMLS_CC);
76 PHP_OCI_CALL(OCIStmtRelease, (statement->stmt, statement->err, NULL, 0, statement->errcode ? OCI_STRLS_CACHE_DELETE : OCI_DEFAULT));
80 PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
123 PHP_OCI_CALL_RETURN(statement->errcode, OCIAttrSet, (statement->stmt, OCI_HTYPE_STMT, &prefetch, 0, OCI_ATTR_PREFETCH_ROWS, statement->err));
125 if (statement->errcode != OCI_SUCCESS) {
126 statement->errcode = php_oci_error(statement->err, statement->errcode TSRMLS_C
[all...]
H A Dphp_oci8_int.h130 sword errcode; /* last errcode */ member in struct:__anon109
191 sword errcode; /* last errcode*/ member in struct:__anon114
285 #define PHP_OCI_HANDLE_ERROR(connection, errcode) \
287 switch (errcode) { \
474 sword errcode; /* global last error code (used when connect fails, for example) */ variable
/PHP_5_3/ext/pdo_mysql/
H A Dmysql_driver.c77 einfo->errcode = mysql_stmt_errno(S->stmt);
82 einfo->errcode = mysql_errno(H->server);
93 if (einfo->errcode) {
94 if (einfo->errcode == 2014) {
101 } else if (einfo->errcode == 2057) {
125 strcpy(*pdo_err, pdo_mysql_get_sqlstate(einfo->errcode));
130 zend_throw_exception_ex(php_pdo_get_exception(), einfo->errcode TSRMLS_CC, "SQLSTATE[%s] [%d] %s",
131 *pdo_err, einfo->errcode, einfo->errmsg);
134 PDO_DBG_RETURN(einfo->errcode);
153 if (einfo->errcode) {
[all...]
H A Dphp_pdo_mysql_int.h95 unsigned int errcode; member in struct:__anon135
/PHP_5_3/ext/pdo_oci/
H A Doci_driver.c51 if (einfo->errcode) {
52 add_next_index_long(info, einfo->errcode);
83 einfo->errcode = 0;
98 OCIErrorGet(err, (ub4)1, NULL, &einfo->errcode, errbuf, (ub4)sizeof(errbuf), OCI_HTYPE_ERROR);
103 OCIErrorGet(err, (ub4)1, NULL, &einfo->errcode, errbuf, (ub4)sizeof(errbuf), OCI_HTYPE_ERROR);
129 if (einfo->errcode) {
130 switch (einfo->errcode) {
191 zend_throw_exception_ex(php_pdo_get_exception(), einfo->errcode TSRMLS_CC, "SQLSTATE[%s]: %s", *pdo_err, einfo->errmsg);
194 return einfo->errcode;
H A Dphp_pdo_oci_int.h26 sb4 errcode; member in struct:__anon140
/PHP_5_3/ext/pdo_pgsql/
H A Dphp_pdo_pgsql_int.h35 unsigned int errcode; member in struct:__anon151
86 extern int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *sqlstate, const char *file, int line TSRMLS_DC);
H A Dpgsql_driver.c63 int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *sqlstate, const char *file, int line TSRMLS_DC) /* {{{ */ argument
70 einfo->errcode = errcode;
91 zend_throw_exception_ex(php_pdo_get_exception(), einfo->errcode TSRMLS_CC, "SQLSTATE[%s] [%d] %s",
92 *pdo_err, einfo->errcode, einfo->errmsg);
95 return errcode;
110 if (einfo->errcode) {
111 add_next_index_long(info, einfo->errcode);
1037 H->einfo.errcode = 0;
/PHP_5_3/ext/pdo_sqlite/
H A Dphp_pdo_sqlite_int.h29 unsigned int errcode; member in struct:__anon157
H A Dsqlite_driver.c40 einfo->errcode = sqlite3_errcode(H->db);
44 if (einfo->errcode != SQLITE_OK) {
53 switch (einfo->errcode) {
81 zend_throw_exception_ex(php_pdo_get_exception(), einfo->errcode TSRMLS_CC, "SQLSTATE[%s] [%d] %s",
82 *pdo_err, einfo->errcode, einfo->errmsg);
85 return einfo->errcode;
94 if (einfo->errcode) {
95 add_next_index_long(info, einfo->errcode);
191 H->einfo.errcode = SQLITE_ERROR;
824 H->einfo.errcode
[all...]
/PHP_5_3/ext/sqlite/
H A Dpdo_sqlite2.c38 unsigned int errcode; member in struct:__anon201
95 S->einfo.errcode = sqlite_compile(S->H->db, stmt->active_query_string, &tail, &S->vm, &errmsg);
96 if (S->einfo.errcode != SQLITE_OK) {
102 S->einfo.errcode = sqlite_step(S->vm, &S->ncols, &S->rowdata, &S->colnames);
103 switch (S->einfo.errcode) {
112 S->einfo.errcode = sqlite_reset(S->vm, &errmsg);
113 if (S->einfo.errcode != SQLITE_OK) {
151 S->einfo.errcode = sqlite_step(S->vm, &S->ncols, &S->rowdata, &S->colnames);
152 switch (S->einfo.errcode) {
158 S->einfo.errcode
[all...]
/PHP_5_3/ext/sqlite3/
H A Dsqlite3.c186 int errcode; local
195 errcode = sqlite3_close(db_obj->db);
196 if (errcode != SQLITE_OK) {
197 php_sqlite3_error(db_obj, "Unable to close database: %d, %s", errcode, sqlite3_errmsg(db_obj->db));
454 int sql_len, errcode; local
476 errcode = sqlite3_prepare_v2(db_obj->db, sql, sql_len, &(stmt_obj->stmt), NULL);
477 if (errcode != SQLITE_OK) {
478 php_sqlite3_error(db_obj, "Unable to prepare statement: %d, %s", errcode, sqlite3_errmsg(db_obj->db));
1588 int sql_len, errcode; local
1615 errcode
[all...]
/PHP_5_3/ext/standard/
H A Dbasic_functions.c1953 ZEND_ARG_INFO(1, errcode)
1962 ZEND_ARG_INFO(1, errcode)
/PHP_5_3/ext/mysqlnd/
H A Dmysqlnd_net.c103 MYSQLND_METHOD(mysqlnd_net, connect)(MYSQLND_NET * net, const char * const scheme, size_t scheme_len, zend_bool persistent, char **errstr, int * errcode TSRMLS_DC)
142 NULL /*ctx*/, errstr, errcode);
148 *errcode = CR_CONNECTION_ERROR;
H A Dmysqlnd_structs.h254 typedef enum_func_status (*func_mysqlnd_net__connect)(MYSQLND_NET * net, const char * const scheme, size_t scheme_len, zend_bool persistent, char **errstr, int * errcode TSRMLS_DC);
H A Dmysqlnd.c558 int errcode = 0, host_len; local
655 if (FAIL == conn->net->m.connect(conn->net, conn->scheme, conn->scheme_len, conn->persistent, &errstr, &errcode TSRMLS_CC)) {
843 DBG_ERR_FMT("[%u] %.128s (trying to connect via %s)", errcode, errstr, conn->scheme);
844 SET_CLIENT_ERROR(conn->error_info, errcode? errcode:CR_CONNECTION_ERROR, UNKNOWN_SQLSTATE, errstr);
845 php_error_docref(NULL TSRMLS_CC, E_WARNING, "[%u] %.128s (trying to connect via %s)", errcode, errstr, conn->scheme);
/PHP_5_3/ext/pcre/pcrelib/
H A Dpcreposix.c199 regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size) argument
204 message = (errcode >= (int)(sizeof(pstring)/sizeof(char *)))?
205 "unknown error code" : pstring[errcode];

Completed in 84 milliseconds

12