From: Michael Wallner Date: Tue, 21 Jul 2015 09:20:38 +0000 (+0200) Subject: Merge branch 'master' into phpng X-Git-Tag: release-2.0.0RC1~15 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-raphf;a=commitdiff_plain;h=6d04f5be0a7ac5ff0d6da2d167c8f1c833dcbaff;hp=177e968e112ea8030065d5d7a4907bcaefa9b085 Merge branch 'master' into phpng --- diff --git a/package.xml b/package.xml index ec9d962..f64b625 100644 --- a/package.xml +++ b/package.xml @@ -19,9 +19,9 @@ http://pear.php.net/dtd/package-2.0.xsd"> mike@php.net yes - 2013-12-04 + 2015-07-21 - 1.0.5 + 1.1.0 1.0.0 @@ -30,7 +30,8 @@ http://pear.php.net/dtd/package-2.0.xsd"> BSD, revised @@ -60,8 +61,6 @@ http://pear.php.net/dtd/package-2.0.xsd"> raphf - - - + diff --git a/php_raphf.h b/php_raphf.h index c5e4f35..00b47a9 100644 --- a/php_raphf.h +++ b/php_raphf.h @@ -348,7 +348,7 @@ PHP_RAPHF_API void *php_persistent_handle_accrete( * * ops = php_persistent_handle_get_resource_factory_ops(); * pf = php_persistent_handle_concede(NULL, ns, persistent_id, NULL, NULL); - * rf = php_resource_factory_init(NULL, ops, pf, php_persistent_handle_abandon); + * rf = php_persistent_handle_resource_factory_init(NULL, pf); * zend_string_release(ns); * } else { * rf = php_resource_factory_init(NULL, &myops, NULL, NULL); @@ -360,10 +360,24 @@ PHP_RAPHF_API void *php_persistent_handle_accrete( PHP_RAPHF_API php_resource_factory_ops_t * php_persistent_handle_get_resource_factory_ops(void); +/** + * Create a resource factory for persistent handles. + * + * This will create a resource factory with persistent handle ops, which wraps + * the provided reource factory \a pf. + * + * @param a the persistent handle resource factory to initialize + * @param pf the resource factory to wrap + */ PHP_RAPHF_API php_resource_factory_t * php_persistent_handle_resource_factory_init(php_resource_factory_t *a, php_persistent_handle_factory_t *pf); +/** + * Check whether a resource factory is a persistent handle resource factory. + * + * @param a the resource factory to check + */ PHP_RAPHF_API zend_bool php_resource_factory_is_persistent( php_resource_factory_t *a);