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
|
From bd6e13252fa91a9cabaac51a583e28988fec5fba Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Wed, 21 Jan 2026 08:44:22 +0100
Subject: [PATCH] don't use report_memleaks with 8.5+
---
.github/workflows/build.yml | 2 +-
PEAR/RunTest.php | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/PEAR/RunTest.php b/PEAR/RunTest.php
index dd5bb1c34..cbe504335 100644
--- a/PEAR/RunTest.php
+++ b/PEAR/RunTest.php
@@ -64,7 +64,6 @@ class PEAR_RunTest
'display_errors=1',
'log_errors=0',
'html_errors=0',
- 'report_memleaks=0',
'report_zend_debug=0',
'docref_root=',
'docref_ext=.html',
@@ -93,6 +92,9 @@ function __construct($logger = null, $options = array())
$excluded_error_reporting |= E_STRICT;
}
$this->ini_overwrites[] = 'error_reporting=' . (E_ALL & ~$excluded_error_reporting);
+ if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 80500) {
+ $this->ini_overwrites[] = 'report_memleaks=0';
+ }
if (is_null($logger)) {
require_once 'PEAR/Common.php';
$logger = new PEAR_Common;
|