X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_curl_client_pool.c;h=21d33144c6ae8abd78b57229495916bb0ba396cc;hp=ea1bace5f1efacd9b6f1b02345e37a84cd073e32;hb=286fd61cfcf5c44ca5d36c4a1014a31f5c559b94;hpb=bd80b17b026a00a254ee8693cd7bacf1ebdec4cf diff --git a/php_http_curl_client_pool.c b/php_http_curl_client_pool.c index ea1bace..21d3314 100644 --- a/php_http_curl_client_pool.c +++ b/php_http_curl_client_pool.c @@ -510,7 +510,11 @@ zend_object_value php_http_curl_client_pool_object_new_ex(zend_class_entry *ce, o = ecalloc(1, sizeof(php_http_client_pool_object_t)); zend_object_std_init((zend_object *) o, ce TSRMLS_CC); +#if PHP_VERSION_ID < 50339 + zend_hash_copy(((zend_object *) o)->properties, &(ce->default_properties), (copy_ctor_func_t) zval_add_ref, NULL, sizeof(zval*)); +#else object_properties_init((zend_object *) o, ce); +#endif if (!(o->pool = p)) { o->pool = php_http_client_pool_init(NULL, &php_http_curl_client_pool_ops, NULL, NULL TSRMLS_CC);