summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatoliy Belsky <ab@php.net>2012-12-13 15:01:01 +0100
committerAnatoliy Belsky <ab@php.net>2012-12-13 15:01:01 +0100
commit0d458ae89f7499da51636140c186970dbfdc06ae (patch)
treea798453493517beaa181785b84cb217706ad1c1e
parent35f86d24d81b81e8c755e82d0b2e76d36f4a0201 (diff)
downloadphp-git-0d458ae89f7499da51636140c186970dbfdc06ae.tar.gz
Fixed mysqlnd compilation in debug mode on windows
-rw-r--r--ext/mysqlnd/mysqlnd_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd_driver.c b/ext/mysqlnd/mysqlnd_driver.c
index aeb34a66ef..1ac9bae871 100644
--- a/ext/mysqlnd/mysqlnd_driver.c
+++ b/ext/mysqlnd/mysqlnd_driver.c
@@ -96,7 +96,9 @@ static void
mysqlnd_error_list_pdtor(void * pDest)
{
MYSQLND_ERROR_LIST_ELEMENT * element = (MYSQLND_ERROR_LIST_ELEMENT *) pDest;
+#ifdef ZTS
TSRMLS_FETCH();
+#endif
DBG_ENTER("mysqlnd_error_list_pdtor");
if (element->error) {
mnd_pefree(element->error, TRUE);