projects
/
m6w6
/
ext-pq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
83b4777
)
provide RTLD_LAZY compatibility
author
Michael Wallner
<mike@php.net>
Mon, 27 Jul 2015 07:13:01 +0000
(09:13 +0200)
committer
Michael Wallner
<mike@php.net>
Mon, 27 Jul 2015 07:13:01 +0000
(09:13 +0200)
src/php_pqconn.c
patch
|
blob
|
history
diff --git
a/src/php_pqconn.c
b/src/php_pqconn.c
index 51e126dbd5adaa5cc1f373f92c1a2815926c8344..e753c7c736b8bdcb663237f1ca70a840280c8297 100644
(file)
--- a/
src/php_pqconn.c
+++ b/
src/php_pqconn.c
@@
-684,7
+684,7
@@
static PHP_METHOD(pqconn, __construct) {
if (flags & PHP_PQCONN_PERSISTENT) {
php_persistent_handle_factory_t *phf = php_persistent_handle_concede(NULL, ZEND_STRL("pq\\Connection"), dsn_str, dsn_len, php_pqconn_wakeup, php_pqconn_retire TSRMLS_CC);
if (flags & PHP_PQCONN_PERSISTENT) {
php_persistent_handle_factory_t *phf = php_persistent_handle_concede(NULL, ZEND_STRL("pq\\Connection"), dsn_str, dsn_len, php_pqconn_wakeup, php_pqconn_retire TSRMLS_CC);
- php_
resource_factory_init(&obj->intern->factory, php_persistent_handle_get_resource_factory_ops(), phf, (void (*)(void*)) php_persistent_handle_abandon
);
+ php_
persistent_handle_resource_factory_init(&obj->intern->factory, phf
);
} else {
php_resource_factory_init(&obj->intern->factory, &php_pqconn_resource_factory_ops, NULL, NULL);
}
} else {
php_resource_factory_init(&obj->intern->factory, &php_pqconn_resource_factory_ops, NULL, NULL);
}