diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2016-12-02 13:18:52 +0300 |
---|---|---|
committer | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2016-12-02 17:04:59 +0300 |
commit | a23e36f208bc2598abe3074071e8b72ac913cb01 (patch) | |
tree | 4eebb159f687e096513c4c6cf4f6c8a8ce21dc0e /library.h | |
parent | 64a1e592572c11cd9a8f532dccf3462850b2efcf (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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |