Skip to content

Commit 7346d8d

Browse files
committed
small macro fix
1 parent 0b74eb2 commit 7346d8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/mysqlnd/mysqlnd_debug.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,9 @@ char * _mysqlnd_pestrdup(const char * const ptr, zend_bool persistent MYSQLND_ME
10921092
}
10931093
/* }}} */
10941094

1095-
#if MYSQLND_DEBUG_MEMORY
1095+
#define MYSQLND_DEBUG_MEMORY 1
1096+
1097+
#if MYSQLND_DEBUG_MEMORY == 0
10961098

10971099
/* {{{ mysqlnd_zend_mm_emalloc */
10981100
static void * mysqlnd_zend_mm_emalloc(size_t size MYSQLND_MEM_D)
@@ -1208,8 +1210,6 @@ static char * mysqlnd_zend_mm_pestrdup(const char * const ptr, zend_bool persist
12081210
#endif
12091211

12101212

1211-
#define MYSQLND_DEBUG_MEMORY 1
1212-
12131213
PHPAPI struct st_mysqlnd_allocator_methods mysqlnd_allocator =
12141214
{
12151215
#if MYSQLND_DEBUG_MEMORY

0 commit comments

Comments
 (0)