mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
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:
parent
d27983e781
commit
c974313aed
12 changed files with 46 additions and 40 deletions
|
@ -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); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue