Fix build failure on Windows. Seems "free" can't be used even as method name of a structure. The MS compiler (the preprocessor most probably) changes it to _free_dbg

This commit is contained in:
Andrey Hristov 2007-10-23 10:10:18 +00:00
parent b599e434ad
commit 8b8cd15428
2 changed files with 2 additions and 2 deletions

View File

@ -2032,7 +2032,7 @@ static PHP_RSHUTDOWN_FUNCTION(mysqlnd)
DBG_ENTER("RSHUTDOWN"); DBG_ENTER("RSHUTDOWN");
if (dbg) { if (dbg) {
dbg->m->close(dbg); dbg->m->close(dbg);
dbg->m->free(dbg); dbg->m->free_handle(dbg);
MYSQLND_G(dbg) = NULL; MYSQLND_G(dbg) = NULL;
} }
#endif #endif

View File

@ -39,7 +39,7 @@ struct st_mysqlnd_debug_methods
char * func_name, uint func_name_len); char * func_name, uint func_name_len);
enum_func_status (*func_leave)(MYSQLND_DEBUG *self, unsigned int line, const char * const file); enum_func_status (*func_leave)(MYSQLND_DEBUG *self, unsigned int line, const char * const file);
enum_func_status (*close)(MYSQLND_DEBUG *self); enum_func_status (*close)(MYSQLND_DEBUG *self);
enum_func_status (*free)(MYSQLND_DEBUG *self); enum_func_status (*free_handle)(MYSQLND_DEBUG *self);
}; };
struct st_mysqlnd_debug struct st_mysqlnd_debug