summaryrefslogtreecommitdiff
path: root/ext/pdo_dblib/php_pdo_dblib_int.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pdo_dblib/php_pdo_dblib_int.h')
-rw-r--r--ext/pdo_dblib/php_pdo_dblib_int.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/pdo_dblib/php_pdo_dblib_int.h b/ext/pdo_dblib/php_pdo_dblib_int.h
index 481f3805f5..64e86b1fbe 100644
--- a/ext/pdo_dblib/php_pdo_dblib_int.h
+++ b/ext/pdo_dblib/php_pdo_dblib_int.h
@@ -87,6 +87,8 @@ typedef struct {
int dberr;
char *oserrstr;
char *dberrstr;
+ char *sqlstate;
+ char *lastmsg;
} pdo_dblib_err;
typedef struct {
@@ -118,7 +120,22 @@ typedef struct {
int nrows;
int current;
+
+ pdo_dblib_err err;
} pdo_dblib_stmt;
+ZEND_BEGIN_MODULE_GLOBALS(dblib)
+ pdo_dblib_err err;
+ char sqlstate[6];
+ZEND_END_MODULE_GLOBALS(dblib)
+
+#ifdef ZTS
+# define DBLIB_G(v) TSRMG(dblib_globals_id, zend_dblib_globals *, v)
+#else
+# define DBLIB_G(v) (dblib_globals.v)
+#endif
+
+ZEND_EXTERN_MODULE_GLOBALS(dblib);
+
#endif