summaryrefslogtreecommitdiffstats
path: root/ev-php81.patch
diff options
context:
space:
mode:
Diffstat (limited to 'ev-php81.patch')
-rw-r--r--ev-php81.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/ev-php81.patch b/ev-php81.patch
new file mode 100644
index 0000000..b9f9657
--- /dev/null
+++ b/ev-php81.patch
@@ -0,0 +1,42 @@
+From 5550acb75a6f567f5a4a612f442ccde237198a33 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Mon, 26 Jul 2021 14:11:12 +0200
+Subject: [PATCH] fix tests for PHP 8.1.0beta1
+
+---
+ tests/12_watcher_leak.phpt | 4 ++--
+ tests/bug33.phpt | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/tests/12_watcher_leak.phpt b/tests/12_watcher_leak.phpt
+index 4b08da3..9d34ee6 100644
+--- a/tests/12_watcher_leak.phpt
++++ b/tests/12_watcher_leak.phpt
+@@ -1,9 +1,9 @@
+ --TEST--
+ Check for EvWatcher object destructors(leaks)
++--INI--
++memory_limit=2M
+ --FILE--
+ <?php
+-ini_set('memory_limit', '1M');
+-
+ $limit = 100000;
+
+ $callback = function() {
+diff --git a/tests/bug33.phpt b/tests/bug33.phpt
+index 2490896..110d7c1 100644
+--- a/tests/bug33.phpt
++++ b/tests/bug33.phpt
+@@ -17,7 +17,7 @@ $reschedule_cb = function ($watcher, $now) use ($time_delta, $time_steps) {
+ return $now + $time_delta;
+ };
+
+-$w = new EvPeriodic(null, null, $reschedule_cb, function () {
++$w = new EvPeriodic(0, 0, $reschedule_cb, function () {
+ static $counter = 0;
+
+ echo ++$counter, PHP_EOL;
+--
+2.31.1
+