Switch from using PHP_MAJOR_VERSION to separate define for

unicode. Unicode is no more, but these are "bookmarks" where
to change mysqlnd, if Unicode becomes trendy again.
This commit is contained in:
Andrey Hristov 2010-08-12 12:02:02 +00:00
parent d27983e781
commit c974313aed
12 changed files with 46 additions and 40 deletions

View file

@ -1249,7 +1249,7 @@ PHPAPI struct st_mysqlnd_allocator_methods mysqlnd_allocator =
/* Follows code borrowed from zend_builtin_functions.c because the functions there are static */
#if PHP_MAJOR_VERSION >= 6
#if MYSQLND_UNICODE
/* {{{ gettraceasstring() macros */
#define TRACE_APPEND_CHR(chr) \
*str = (char*)erealloc(*str, *len + 1 + 1); \