From: Michael Wallner Date: Wed, 31 Jan 2007 08:31:33 +0000 (+0000) Subject: - make ist behave like a stack, not like a queue X-Git-Tag: RELEASE_1_5_0_RC1~19 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=121eac188fc0c1cabe3ea571a72867d3fd6b1b3f;p=m6w6%2Fext-http - make ist behave like a stack, not like a queue --- diff --git a/http_persistent_handle_api.c b/http_persistent_handle_api.c index 8fc1b02..159d378 100644 --- a/http_persistent_handle_api.c +++ b/http_persistent_handle_api.c @@ -147,7 +147,7 @@ PHP_HTTP_API STATUS _http_persistent_handle_acquire_ex(const char *name_str, siz LOCK(); if (SUCCESS == zend_hash_find(&http_persistent_handles_hash, (char *) name_str, name_len+1, (void *) &hentry)) { - zend_hash_internal_pointer_reset(&hentry->list); + zend_hash_internal_pointer_end(&hentry->list); if ( HASH_KEY_NON_EXISTANT != zend_hash_get_current_key(&hentry->list, NULL, &index, 0) && SUCCESS == zend_hash_get_current_data(&hentry->list, (void *) &lentry)) { *handle = lentry->handle;