Page MenuHomePhabricator (Chris)

No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
diff --git a/debian/patches/0001-Fix-PHP-7-32bits-build.patch b/debian/patches/0001-Fix-PHP-7-32bits-build.patch
new file mode 100644
index 00000000..2343fc8d
--- /dev/null
+++ b/debian/patches/0001-Fix-PHP-7-32bits-build.patch
@@ -0,0 +1,32 @@
+From: Remi Collet <fedora@famillecollet.com>
+Date: Sat, 26 Dec 2015 17:30:16 +0100
+Subject: Fix PHP 7 / 32bits build
+
+---
+ mongodb-1.1.1/phongo_compat.h | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/mongodb-1.1.1/phongo_compat.h b/mongodb-1.1.1/phongo_compat.h
+index da4aed1..adbf21c 100644
+--- a/mongodb-1.1.1/phongo_compat.h
++++ b/mongodb-1.1.1/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); \
+ }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 00000000..188edf62
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Fix-PHP-7-32bits-build.patch

File Metadata

Mime Type
text/x-diff
Expires
Wed, Jun 17, 9:15 PM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
71024
Default Alt Text
(1 KB)

Event Timeline