small refactoring - factour out code from connection establishment.

Add a define for the default authentication protocol - get away from
the hardcoded magic value
This commit is contained in:
andrey 2012-05-30 15:24:17 +03:00
parent fde8762e90
commit 5a2578a333
4 changed files with 163 additions and 101 deletions

View file

@ -117,6 +117,7 @@ PHPAPI char * mysqlnd_get_backtrace(uint max_levels, size_t * length TSRMLS_DC);
if ((dbg_obj)) { \
dbg_skip_trace = !(dbg_obj)->m->func_enter((dbg_obj), __LINE__, __FILE__, func_name, strlen(func_name)); \
} \
if (dbg_skip_trace); /* shut compiler's mouth */\
do { \
if ((dbg_obj) && (dbg_obj)->flags & MYSQLND_DEBUG_PROFILE_CALLS) { \
DBG_PROFILE_START_TIME(); \