From 4dd2486b005013df4c88b64b34bb963f13ac4c5d Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Tue, 28 Jul 2015 13:13:36 +0200 Subject: added "keeprefcount" parameter to Value::detach() --- include/value.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/value.h b/include/value.h index 807ad42..532d0c1 100644 --- a/include/value.h +++ b/include/value.h @@ -1149,9 +1149,10 @@ protected: * return a zval pointer, that would otherwise be deallocated the moment * the function returns. * + * @param keeprefcount Keep the same refcount * @return zval */ - struct _zval_struct *detach(); + struct _zval_struct *detach(bool keeprefcount = true); /** * Set a certain property without running any checks (you must already know -- cgit v1.2.3