diff options
author | Andrey Hristov <andrey@php.net> | 2008-04-24 14:22:19 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2008-04-24 14:22:19 +0000 |
commit | f4e659d2af2ba68eb6d9092560eb0247a33fb827 (patch) | |
tree | 0dd088ae74cb248da04cb842b65f00a356f50dbf /ext/mysqlnd/mysqlnd_palloc.c | |
parent | 2667f76d7b7f3fce7bc5a8374632dce5e34cb0b6 (diff) | |
download | php-git-f4e659d2af2ba68eb6d9092560eb0247a33fb827.tar.gz |
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.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_palloc.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_palloc.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ext/mysqlnd/mysqlnd_palloc.c b/ext/mysqlnd/mysqlnd_palloc.c index 976e473733..f64500b5bf 100644 --- a/ext/mysqlnd/mysqlnd_palloc.c +++ b/ext/mysqlnd/mysqlnd_palloc.c @@ -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); |