X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http.c;fp=http.c;h=0118e6d1bb279a37733e994bbe592a4153c1c870;hb=1df42dae0279a4d0f98b042bb389e90cbd197f6f;hp=364710d5191e2f2d14bc8d85fe01d307a950ba8d;hpb=aca5a5a21e4514707a71cfa69cc19ae50a78f5d3;p=m6w6%2Fext-http diff --git a/http.c b/http.c index 364710d..0118e6d 100644 --- a/http.c +++ b/http.c @@ -243,7 +243,7 @@ PHP_INI_MH(http_update_allowed_methods) #ifdef HTTP_HAVE_PERSISTENT_HANDLES PHP_INI_MH(http_update_persistent_handle_ident) { - HTTP_G->persistent.handles.ident.h = zend_get_hash_value(new_value, HTTP_G->persistent.handles.ident.l = new_value_length+1); + HTTP_G->persistent.handles.ident.h = zend_hash_func(new_value, HTTP_G->persistent.handles.ident.l = new_value_length+1); return OnUpdateString(entry, new_value, new_value_length, mh_arg1, mh_arg2, mh_arg3, stage TSRMLS_CC); } #endif @@ -300,7 +300,9 @@ PHP_MINIT_FUNCTION(http) #ifdef HTTP_HAVE_CURL # ifdef HTTP_HAVE_PERSISTENT_HANDLES (SUCCESS != PHP_MINIT_CALL(http_persistent_handle)) || +# ifdef ZEND_ENGINE_2 (SUCCESS != PHP_MINIT_CALL(http_request_pool)) || +# endif # endif (SUCCESS != PHP_MINIT_CALL(http_request)) || # ifdef ZEND_ENGINE_2