projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
provide RTLD_LAZY compatibility
[m6w6/ext-http]
/
php_http_client_curl.c
diff --git
a/php_http_client_curl.c
b/php_http_client_curl.c
index 4634b794ad52c46863d66e0fbc3289b4d5f0bac3..78c552a2ce723dbd8d9ea76edf8dbe08482ab129 100644
(file)
--- a/
php_http_client_curl.c
+++ b/
php_http_client_curl.c
@@
-2117,7
+2117,7
@@
static php_resource_factory_t *create_rf(php_http_client_t *h, php_http_client_e
}
/* only if the client itself is setup for persistence */
}
/* only if the client itself is setup for persistence */
- if (
h->rf->dtor == (void (*)(void*)) php_persistent_handle_abandon
) {
+ if (
php_resource_factory_is_persistent(h->rf)
) {
char *id_str = NULL;
size_t id_len;
int port = url->port ? url->port : 80;
char *id_str = NULL;
size_t id_len;
int port = url->port ? url->port : 80;
@@
-2138,7
+2138,7
@@
static php_resource_factory_t *create_rf(php_http_client_t *h, php_http_client_e
}
if (pf) {
}
if (pf) {
- rf = php_
resource_factory_init(NULL, php_persistent_handle_get_resource_factory_ops(), pf, (void (*)(void*)) php_persistent_handle_abandon
);
+ rf = php_
persistent_handle_resource_factory_init(NULL, pf
);
} else {
rf = php_resource_factory_init(NULL, &php_http_curle_resource_factory_ops, NULL, NULL);
}
} else {
rf = php_resource_factory_init(NULL, &php_http_curle_resource_factory_ops, NULL, NULL);
}