1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
|