Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2016-12-02 13:18:52 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2016-12-02 17:04:59 +0300
commita23e36f208bc2598abe3074071e8b72ac913cb01 (patch)
tree4eebb159f687e096513c4c6cf4f6c8a8ce21dc0e /library.h
parent64a1e592572c11cd9a8f532dccf3462850b2efcf (diff)
zval_get_string
Added gc attribute to zend_string (for zend_string_release). Added function zval_get_string and replace convert_to_string with it.
Diffstat (limited to 'library.h')
-rw-r--r--library.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/library.h b/library.h
index f3125778..8eb67083 100644
--- a/library.h
+++ b/library.h
@@ -91,6 +91,7 @@ PHP_REDIS_API void redis_client_list_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSo
zend_string _zstr = {0}; \
_zstr.val = _php_math_number_format_ex(dbl, 16, &dbl_decsep, 1, NULL, 0); \
_zstr.len = strlen(_zstr.val); \
+ _zstr.gc = 0x10; \
dbl_str = &_zstr; \
} while (0);
#else
@@ -98,6 +99,7 @@ PHP_REDIS_API void redis_client_list_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSo
zend_string _zstr = {0}; \
_zstr.val = _php_math_number_format(dbl, 16, '.', '\x00'); \
_zstr.len = strlen(_zstr.val); \
+ _zstr.gc = 0x10; \
dbl_str = &_zstr; \
} while (0)
#endif