mirror of
https://github.com/php/php-src.git
synced 2024-12-12 19:33:31 +08:00
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:
parent
b599e434ad
commit
8b8cd15428
@ -2032,7 +2032,7 @@ static PHP_RSHUTDOWN_FUNCTION(mysqlnd)
|
||||
DBG_ENTER("RSHUTDOWN");
|
||||
if (dbg) {
|
||||
dbg->m->close(dbg);
|
||||
dbg->m->free(dbg);
|
||||
dbg->m->free_handle(dbg);
|
||||
MYSQLND_G(dbg) = NULL;
|
||||
}
|
||||
#endif
|
||||
|
@ -39,7 +39,7 @@ struct st_mysqlnd_debug_methods
|
||||
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 (*close)(MYSQLND_DEBUG *self);
|
||||
enum_func_status (*free)(MYSQLND_DEBUG *self);
|
||||
enum_func_status (*free_handle)(MYSQLND_DEBUG *self);
|
||||
};
|
||||
|
||||
struct st_mysqlnd_debug
|
||||
|
Loading…
Reference in New Issue
Block a user