summaryrefslogtreecommitdiffstats
path: root/bitset-upstream.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-10-08 17:07:13 +0200
committerRemi Collet <remi@remirepo.net>2017-10-08 17:07:13 +0200
commit0d6b709ec6026e6787d6d57a4048d169e26781e9 (patch)
treea59322101d3c0c90f2b15b8be74d5fb59dd03508 /bitset-upstream.patch
parentf0425a28750be7243f2aa0f4242b8bc110da4d95 (diff)
v2.0.4 (stable)
Diffstat (limited to 'bitset-upstream.patch')
-rw-r--r--bitset-upstream.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/bitset-upstream.patch b/bitset-upstream.patch
new file mode 100644
index 0000000..0d3680a
--- /dev/null
+++ b/bitset-upstream.patch
@@ -0,0 +1,34 @@
+From 112f0b16d587c444f244325a798eb7c90d79dfde Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@php.net>
+Date: Sun, 8 Oct 2017 16:57:44 +0200
+Subject: [PATCH] fix ZTS build
+
+---
+ bitset.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/bitset.c b/bitset.c
+index 3ca6200..9b7596d 100644
+--- a/bitset.c
++++ b/bitset.c
+@@ -652,7 +652,7 @@ PHP_METHOD(BitSet, previousClearBit)
+ bit_diff = intern->bitset_len * CHAR_BIT;
+
+ if (start_bit > bit_diff) {
+- zend_throw_exception_ex(spl_ce_OutOfRangeException, 0,
++ zend_throw_exception_ex(spl_ce_OutOfRangeException, 0 TSRMLS_CC,
+ "The specified index parameter exceeds the total number of bits available");
+ return;
+ }
+@@ -696,7 +696,7 @@ PHP_METHOD(BitSet, previousSetBit)
+ bit_diff = intern->bitset_len * CHAR_BIT;
+
+ if (start_bit > bit_diff) {
+- zend_throw_exception_ex(spl_ce_OutOfRangeException, 0,
++ zend_throw_exception_ex(spl_ce_OutOfRangeException, 0 TSRMLS_CC,
+ "The specified index parameter exceeds the total number of bits available");
+ }
+
+--
+2.1.4
+