--- embedaddon/php/ext/mysqlnd/mysqlnd_driver.c 2012/05/29 12:34:41 1.1.1.1 +++ embedaddon/php/ext/mysqlnd/mysqlnd_driver.c 2013/07/22 01:31:56 1.1.1.2 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 2006-2012 The PHP Group | + | Copyright (c) 2006-2013 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: mysqlnd_driver.c,v 1.1.1.1 2012/05/29 12:34:41 misho Exp $ */ +/* $Id: mysqlnd_driver.c,v 1.1.1.2 2013/07/22 01:31:56 misho Exp $ */ #include "php.h" #include "mysqlnd.h" #include "mysqlnd_wireprotocol.h" @@ -96,7 +96,9 @@ static void mysqlnd_error_list_pdtor(void * pDest) { MYSQLND_ERROR_LIST_ELEMENT * element = (MYSQLND_ERROR_LIST_ELEMENT *) pDest; +#ifdef ZTS TSRMLS_FETCH(); +#endif DBG_ENTER("mysqlnd_error_list_pdtor"); if (element->error) { mnd_pefree(element->error, TRUE);