diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-12-26 17:41:42 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-12-26 17:41:42 +0100 |
commit | 67f988279084e5cfdbd88ab590493ee2fbc04a46 (patch) | |
tree | fed4ba19c34c2ae7a46df74bb0aa2f53b00f6ed0 /mongodb-pr185.patch | |
parent | c46ec36ee493ac281de79e4116436d5ce7d6578b (diff) |
php-pecl-mongodb: 1.1.1
Diffstat (limited to 'mongodb-pr185.patch')
-rw-r--r-- | mongodb-pr185.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/mongodb-pr185.patch b/mongodb-pr185.patch new file mode 100644 index 0000000..592b4fe --- /dev/null +++ b/mongodb-pr185.patch @@ -0,0 +1,33 @@ +From c6cc67b5721acf927d712267bebe9d5180e31fc1 Mon Sep 17 00:00:00 2001 +From: Remi Collet <fedora@famillecollet.com> +Date: Sat, 26 Dec 2015 17:30:16 +0100 +Subject: [PATCH] Fix PHP 7 / 32bits build + +--- + phongo_compat.h | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/phongo_compat.h b/phongo_compat.h +index da4aed1..adbf21c 100644 +--- a/phongo_compat.h ++++ b/phongo_compat.h +@@ -99,7 +99,8 @@ + int tmp_len; \ + mongoc_log(MONGOC_LOG_LEVEL_WARNING, MONGOC_LOG_DOMAIN, "Integer overflow detected on your platform: %lld", value); \ + tmp_len = spprintf(&tmp, 0, "%lld", value); \ +- add_index_stringl(zval, index, tmp, tmp_len, 0); \ ++ ADD_ASSOC_STRINGL(zval, index, tmp, tmp_len); \ ++ efree(tmp); \ + } else { \ + add_index_long(zval, index, val); \ + } +@@ -109,7 +110,8 @@ + int tmp_len; \ + mongoc_log(MONGOC_LOG_LEVEL_WARNING, MONGOC_LOG_DOMAIN, "Integer overflow detected on your platform: %lld", value); \ + tmp_len = spprintf(&tmp, 0, "%lld", value); \ +- add_assoc_stringl(zval, key, tmp, tmp_len, 0); \ ++ ADD_ASSOC_STRINGL(zval, key, tmp, tmp_len); \ ++ efree(tmp); \ + } else { \ + add_assoc_long(zval, key, value); \ + } |