summaryrefslogtreecommitdiffstats
path: root/1366.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-06-08 16:20:22 +0200
committerRemi Collet <remi@remirepo.net>2018-06-08 16:20:22 +0200
commit47abb35edde318ead04e102e88bafb90d07d85e4 (patch)
treec534527a3707f7c5ddbab60e975945322cf491cd /1366.patch
parent7816d1bebdc67454791fcdb9f653633a09277a92 (diff)
better path (PR 1335)
test build with 7.3 open https://github.com/phpredis/phpredis/pull/1366 Fix: Warning: time() expects exactly 0 parameters, 1 given ...
Diffstat (limited to '1366.patch')
-rw-r--r--1366.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/1366.patch b/1366.patch
new file mode 100644
index 0000000..f3d5f37
--- /dev/null
+++ b/1366.patch
@@ -0,0 +1,23 @@
+From ff32a634151fd471cbd5b39e26cd56af63fe7ea5 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Fri, 8 Jun 2018 16:16:53 +0200
+Subject: [PATCH] Fix: Warning: time() expects exactly 0 parameters, 1 given
+ ... (php 7.3)
+
+---
+ tests/RedisTest.php | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/RedisTest.php b/tests/RedisTest.php
+index ff0b7537..e48309d5 100644
+--- a/tests/RedisTest.php
++++ b/tests/RedisTest.php
+@@ -452,7 +452,7 @@ public function testSetTimeout() {
+ public function testExpireAt() {
+ $this->redis->del('key');
+ $this->redis->set('key', 'value');
+- $now = time(NULL);
++ $now = time();
+ $this->redis->expireAt('key', $now + 1);
+ $this->assertEquals('value', $this->redis->get('key'));
+ sleep(2);