php_http_curlsh_dtor
};
-static zend_class_entry *get_class_entry(void)
-{
- return php_http_curl_client_datashare_class_entry;
-}
-
static php_http_client_datashare_ops_t php_http_curl_client_datashare_ops = {
&php_http_curlsh_resource_factory_ops,
php_http_curl_client_datashare_init,
php_http_curl_client_datashare_detach,
php_http_curl_client_datashare_setopt,
(php_http_new_t) php_http_curl_client_datashare_object_new_ex,
- get_class_entry
+ php_http_curl_client_datashare_get_class_entry
};
PHP_HTTP_API php_http_client_datashare_ops_t *php_http_curl_client_datashare_get_ops(void)
#define PHP_HTTP_EMPTY_ARGS(method) PHP_HTTP_EMPTY_ARGS_EX(HttpClientDataShare, method, 0)
#define PHP_HTTP_RSHARE_ME(method, visibility) PHP_ME(HttpClientDataShare, method, PHP_HTTP_ARGS(HttpClientDataShare, method), visibility)
-zend_class_entry *php_http_curl_client_datashare_class_entry;
-zend_function_entry php_http_curl_client_datashare_method_entry[] = {
+static zend_class_entry *php_http_curl_client_datashare_class_entry;
+
+zend_class_entry *php_http_curl_client_datashare_get_class_entry(void)
+{
+ return php_http_curl_client_datashare_class_entry;
+}
+
+static zend_function_entry php_http_curl_client_datashare_method_entry[] = {
EMPTY_FUNCTION_ENTRY
};
o = ecalloc(1, sizeof(*o));
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 (share) {
o->share = share;