projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
302bc07
)
fix warnings
author
Michael Wallner
<mike@php.net>
Thu, 2 Jun 2011 20:01:07 +0000
(20:01 +0000)
committer
Michael Wallner
<mike@php.net>
Thu, 2 Jun 2011 20:01:07 +0000
(20:01 +0000)
php_http_request_factory.c
patch
|
blob
|
history
diff --git
a/php_http_request_factory.c
b/php_http_request_factory.c
index a4ac4f0cd5e622854f3eb03b8172c09d18032797..be5cb7d938fa62f4a30f543df85dd1b68d9c75d5 100644
(file)
--- a/
php_http_request_factory.c
+++ b/
php_http_request_factory.c
@@
-135,12
+135,12
@@
PHP_METHOD(HttpRequestFactory, createRequest)
if ((pf = php_http_persistent_handle_concede(NULL , name_str, name_len, Z_STRVAL_P(phi), Z_STRLEN_P(phi) TSRMLS_CC))) {
php_http_resource_factory_ops_t ops = {
if ((pf = php_http_persistent_handle_concede(NULL , name_str, name_len, Z_STRVAL_P(phi), Z_STRLEN_P(phi) TSRMLS_CC))) {
php_http_resource_factory_ops_t ops = {
- php_http_persistent_handle_acquire,
- php_http_persistent_handle_accrete,
- php_http_persistent_handle_release
+
(php_http_resource_factory_handle_ctor_t)
php_http_persistent_handle_acquire,
+
(php_http_resource_factory_handle_copy_t)
php_http_persistent_handle_accrete,
+
(php_http_resource_factory_handle_dtor_t)
php_http_persistent_handle_release
};
};
- rf = php_http_resource_factory_init(NULL, &ops, pf, php_http_persistent_handle_abandon TSRMLS_CC);
+ rf = php_http_resource_factory_init(NULL, &ops, pf,
(void (*)(void *))
php_http_persistent_handle_abandon TSRMLS_CC);
}
efree(name_str);
}
efree(name_str);
@@
-212,12
+212,12
@@
PHP_METHOD(HttpRequestFactory, createPool)
if ((pf = php_http_persistent_handle_concede(NULL , name_str, name_len, Z_STRVAL_P(phi), Z_STRLEN_P(phi) TSRMLS_CC))) {
php_http_resource_factory_ops_t ops = {
if ((pf = php_http_persistent_handle_concede(NULL , name_str, name_len, Z_STRVAL_P(phi), Z_STRLEN_P(phi) TSRMLS_CC))) {
php_http_resource_factory_ops_t ops = {
- php_http_persistent_handle_acquire,
- php_http_persistent_handle_accrete,
- php_http_persistent_handle_release
+
(php_http_resource_factory_handle_ctor_t)
php_http_persistent_handle_acquire,
+
(php_http_resource_factory_handle_copy_t)
php_http_persistent_handle_accrete,
+
(php_http_resource_factory_handle_dtor_t)
php_http_persistent_handle_release
};
};
- rf = php_http_resource_factory_init(NULL, &ops, pf, php_http_persistent_handle_abandon TSRMLS_CC);
+ rf = php_http_resource_factory_init(NULL, &ops, pf,
(void (*)(void *))
php_http_persistent_handle_abandon TSRMLS_CC);
}
efree(name_str);
}
efree(name_str);
@@
-279,12
+279,12
@@
PHP_METHOD(HttpRequestFactory, createDataShare)
if ((pf = php_http_persistent_handle_concede(NULL , name_str, name_len, Z_STRVAL_P(phi), Z_STRLEN_P(phi) TSRMLS_CC))) {
php_http_resource_factory_ops_t ops = {
if ((pf = php_http_persistent_handle_concede(NULL , name_str, name_len, Z_STRVAL_P(phi), Z_STRLEN_P(phi) TSRMLS_CC))) {
php_http_resource_factory_ops_t ops = {
- php_http_persistent_handle_acquire,
- php_http_persistent_handle_accrete,
- php_http_persistent_handle_release
+
(php_http_resource_factory_handle_ctor_t)
php_http_persistent_handle_acquire,
+
(php_http_resource_factory_handle_copy_t)
php_http_persistent_handle_accrete,
+
(php_http_resource_factory_handle_dtor_t)
php_http_persistent_handle_release
};
};
- rf = php_http_resource_factory_init(NULL, &ops, pf, php_http_persistent_handle_abandon TSRMLS_CC);
+ rf = php_http_resource_factory_init(NULL, &ops, pf,
(void (*)(void *))
php_http_persistent_handle_abandon TSRMLS_CC);
}
efree(name_str);
}
efree(name_str);