- make ist behave like a stack, not like a queue
authorMichael Wallner <mike@php.net>
Wed, 31 Jan 2007 08:31:33 +0000 (08:31 +0000)
committerMichael Wallner <mike@php.net>
Wed, 31 Jan 2007 08:31:33 +0000 (08:31 +0000)
http_persistent_handle_api.c

index 8fc1b02f72d1a775d9a0a00c256472712774fd2c..159d378f50b1870089bb2e0c01aeb29288ea5b39 100644 (file)
@@ -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;