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>2017-04-21 07:38:00 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2017-04-21 20:32:31 +0300
commitc8079eec835fa09afc2880ad01331984d55756c5 (patch)
tree6010de6ee2364fd276ca2fee0f2317763f597ede /library.h
parenta44b7c654d70c7fb39ae2553a62d64b227be94d0 (diff)
Remove REDIS_DOUBLE_TO_STRING macros
Diffstat (limited to 'library.h')
-rw-r--r--library.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/library.h b/library.h
index 0fa42dfe..2b7e4584 100644
--- a/library.h
+++ b/library.h
@@ -84,28 +84,4 @@ PHP_REDIS_API int redis_read_variant_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSo
PHP_REDIS_API void redis_client_list_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab);
-#if (PHP_MAJOR_VERSION < 7)
-#if ZEND_MODULE_API_NO >= 20100000
-#define REDIS_DOUBLE_TO_STRING(dbl_str, dbl) do { \
- char dbl_decsep = '.'; \
- dbl_str = emalloc(sizeof(zend_string)); \
- dbl_str->val = _php_math_number_format_ex(dbl, 16, &dbl_decsep, 1, NULL, 0); \
- dbl_str->len = strlen(dbl_str->val); \
- dbl_str->gc = 0x11; \
-} while (0);
-#else
-#define REDIS_DOUBLE_TO_STRING(dbl_str, dbl) do { \
- dbl_str = emalloc(sizeof(zend_string)); \
- dbl_str->val = _php_math_number_format(dbl, 16, '.', '\x00'); \
- dbl_str->len = strlen(dbl_str->val); \
- dbl_str->gc = 0x11; \
-} while (0)
-#endif
-#else
-#define REDIS_DOUBLE_TO_STRING(dbl_str, dbl) do { \
- char dbl_decsep = '.'; \
- dbl_str = _php_math_number_format_ex(dbl, 16, &dbl_decsep, 1, NULL, 0); \
-} while (0);
-#endif
-
#endif