summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2011-11-22 16:38:06 +0000
committerAndrey Hristov <andrey@php.net>2011-11-22 16:38:06 +0000
commit842b7d68409ce65948ac777857df5c491ed5b535 (patch)
tree4b1a35a3ce3c0955438c20b3f2345b8faf6190de
parentd881b055c8fbcbe266cebaea131063bcbff30a0e (diff)
downloadphp-git-842b7d68409ce65948ac777857df5c491ed5b535.tar.gz
use the method in all builds. Thus it can be used for detection
of state transitioning in every case
-rw-r--r--ext/mysqlnd/mysqlnd_priv.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/ext/mysqlnd/mysqlnd_priv.h b/ext/mysqlnd/mysqlnd_priv.h
index 781e04a530..2804479a75 100644
--- a/ext/mysqlnd/mysqlnd_priv.h
+++ b/ext/mysqlnd/mysqlnd_priv.h
@@ -170,15 +170,8 @@
#define SET_STMT_ERROR(stmt, a, b, c) SET_CLIENT_ERROR(*(stmt)->error_info, a, b, c)
-
-#ifdef ZTS
#define CONN_GET_STATE(c) (c)->m->get_state((c) TSRMLS_CC)
#define CONN_SET_STATE(c, s) (c)->m->set_state((c), (s) TSRMLS_CC)
-#else
-#define CONN_GET_STATE(c) ((c)->state)
-#define CONN_SET_STATE(c, s) ((c)->state = (s))
-#endif
-
/* PS stuff */
typedef void (*ps_field_fetch_func)(zval *zv, const MYSQLND_FIELD * const field,