-PHP_HTTP_API STATUS php_http_persistent_handle_acquire2(const char *name_str, size_t name_len, const char *ident_str, size_t ident_len, void **handle TSRMLS_DC)
-{
- STATUS status = FAILURE;
- php_http_persistent_handle_provider_t *provider;
-
- *handle = NULL;
- LOCK();
- if (SUCCESS == zend_hash_find(&php_http_persistent_handles_hash, name_str, name_len+1, (void *) &provider)) {
- status = php_http_persistent_handle_do_acquire(provider, ident_str, ident_len, handle TSRMLS_CC);
- }
- UNLOCK();
-
-#if PHP_HTTP_DEBUG_PHANDLES
- fprintf(stderr, "ACQUIRE: %p (%s)\n", *handle, name_str);
-#endif
-
- return status;
-}
-
-PHP_HTTP_API STATUS php_http_persistent_handle_release2(const char *name_str, size_t name_len, const char *ident_str, size_t ident_len, void **handle TSRMLS_DC)
-{
- STATUS status = FAILURE;
- php_http_persistent_handle_provider_t *provider;
-#if PHP_HTTP_DEBUG_PHANDLES
- void *handle_tmp = *handle;
-#endif
-
- LOCK();
- if (SUCCESS == zend_hash_find(&php_http_persistent_handles_hash, name_str, name_len+1, (void *) &provider)) {
- status = php_http_persistent_handle_do_release(provider, ident_str, ident_len, handle TSRMLS_CC);
- }
- UNLOCK();
-
-#if PHP_HTTP_DEBUG_PHANDLES
- fprintf(stderr, "RELEASE: %p (%s)\n", handle_tmp, name_str);
-#endif
-
- return status;
-}
-
-PHP_HTTP_API STATUS php_http_persistent_handle_accrete2(const char *name_str, size_t name_len, const char *ident_str, size_t ident_len, void *old_handle, void **new_handle TSRMLS_DC)
-{
- STATUS status = FAILURE;
- php_http_persistent_handle_provider_t *provider;
-
- *new_handle = NULL;
- LOCK();
- if (SUCCESS == zend_hash_find(&php_http_persistent_handles_hash, name_str, name_len+1, (void *) &provider)) {
- status = php_http_persistent_handle_do_accrete(provider, ident_str, ident_len, old_handle, new_handle TSRMLS_CC);
- }
- UNLOCK();
-
-#if PHP_HTTP_DEBUG_PHANDLES
- fprintf(stderr, "ACCRETE: %p > %p (%s)\n", old_handle, *new_handle, name_str);
-#endif
-
- return status;
-}
-