mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Update ext/mysql's and ext/mysqli's tests
Add mysqli_stmt_more_result()/mysqli_stmt_next_result(), but only in mysqlnd builds as libmysql doesn't support this feature.
This commit is contained in:
parent
2667f76d7b
commit
f4e659d2af
23 changed files with 603 additions and 200 deletions
|
@ -151,14 +151,16 @@ PHPAPI MYSQLND_THD_ZVAL_PCACHE* _mysqlnd_palloc_init_thd_cache(MYSQLND_ZVAL_PCAC
|
|||
/* }}} */
|
||||
|
||||
|
||||
/* {{{ mysqlnd_palloc_get_thd_cache_reference */
|
||||
MYSQLND_THD_ZVAL_PCACHE* mysqlnd_palloc_get_thd_cache_reference(MYSQLND_THD_ZVAL_PCACHE * const cache)
|
||||
/* {{{ _mysqlnd_palloc_get_thd_cache_reference */
|
||||
MYSQLND_THD_ZVAL_PCACHE* _mysqlnd_palloc_get_thd_cache_reference(MYSQLND_THD_ZVAL_PCACHE * const cache TSRMLS_DC)
|
||||
{
|
||||
DBG_ENTER("_mysqlnd_palloc_get_thd_cache_reference");
|
||||
if (cache) {
|
||||
++cache->references;
|
||||
DBG_INF_FMT("cache=%p new_refc=%d", *cache, cache->references);
|
||||
mysqlnd_palloc_get_cache_reference(cache->parent);
|
||||
}
|
||||
return cache;
|
||||
DBG_RETURN(cache);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
@ -190,8 +192,8 @@ PHPAPI void _mysqlnd_palloc_free_thd_cache_reference(MYSQLND_THD_ZVAL_PCACHE **c
|
|||
{
|
||||
DBG_ENTER("_mysqlnd_palloc_free_thd_cache_reference");
|
||||
if (*cache) {
|
||||
DBG_INF_FMT("cache=%p refs=%d", *cache, (*cache)->references);
|
||||
--(*cache)->parent->references;
|
||||
DBG_INF_FMT("cache=%p references_left=%d", *cache, (*cache)->references);
|
||||
|
||||
if (--(*cache)->references == 0) {
|
||||
mysqlnd_palloc_free_thd_cache(*cache TSRMLS_CC);
|
||||
|
@ -493,7 +495,7 @@ PHPAPI void _mysqlnd_palloc_rshutdown(MYSQLND_THD_ZVAL_PCACHE * thd_cache TSRMLS
|
|||
++cache->free_items;
|
||||
#ifdef ZTS
|
||||
memset(&((*p)->thread_id), 0, sizeof(THREAD_T));
|
||||
#endif
|
||||
#endif
|
||||
p++;
|
||||
}
|
||||
UNLOCK_PCACHE(cache);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue