diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-12-21 10:05:37 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-12-21 10:05:37 +0100 |
commit | cd03e963899c770aab3218b34d1274d7a0da3773 (patch) | |
tree | 72fca815446d1c31cde9ac21f55e9ed6731c7c1f /redis-pr1064.patch | |
parent | 47a21c187b97f357da6e647850d76e647baa6b81 (diff) |
php-pecl-redis: test build
Diffstat (limited to 'redis-pr1064.patch')
-rw-r--r-- | redis-pr1064.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/redis-pr1064.patch b/redis-pr1064.patch deleted file mode 100644 index 3e43523..0000000 --- a/redis-pr1064.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 4706aae6eacc62e45cd4280dc5bd80668d22641c Mon Sep 17 00:00:00 2001 -From: Remi Collet <fedora@famillecollet.com> -Date: Fri, 16 Dec 2016 15:31:11 +0100 -Subject: [PATCH] Fix #1060 don't return pointer to local volatile data - ---- - library.h | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/library.h b/library.h -index 8eb6708..6aef144 100644 ---- a/library.h -+++ b/library.h -@@ -88,7 +88,7 @@ PHP_REDIS_API void redis_client_list_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSo - #if ZEND_MODULE_API_NO >= 20100000 - #define REDIS_DOUBLE_TO_STRING(dbl_str, dbl) do { \ - char dbl_decsep = '.'; \ -- zend_string _zstr = {0}; \ -+ static 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; \ -@@ -96,7 +96,7 @@ PHP_REDIS_API void redis_client_list_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSo - } while (0); - #else - #define REDIS_DOUBLE_TO_STRING(dbl_str, dbl) do { \ -- zend_string _zstr = {0}; \ -+ static zend_string _zstr = {0}; \ - _zstr.val = _php_math_number_format(dbl, 16, '.', '\x00'); \ - _zstr.len = strlen(_zstr.val); \ - _zstr.gc = 0x10; \ |