Skip to content

Commit c5143c0

Browse files
authored
tree: remove some usages of the report_memleaks INI setting (#19407)
1 parent 1f131e3 commit c5143c0

File tree

5 files changed

+1
-11
lines changed

5 files changed

+1
-11
lines changed

Zend/tests/bug67368.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
--TEST--
22
Bug #67368 (Memory leak with immediately dereferenced array in class constant)
3-
--INI--
4-
report_memleaks=1
53
--FILE--
64
<?php
75
class FooBar {

Zend/tests/bug81104.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Bug #81104: Warning: "Failed to set memory limit to ... bytes" emitted after exit in debug
33
--INI--
44
memory_limit=5M
5-
report_memleaks=0
65
--FILE--
76
<?php
87
#[AllowDynamicProperties]

Zend/tests/exceptions/bug26698.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ Bug #26698 (Thrown exceptions while evaluating argument to pass as parameter cra
33
--FILE--
44
<?php
55

6-
ini_set("report_memleaks", 0); // the exception thrown in this test results in a memory leak, which is fine
7-
86
class ObjectOne
97
{
108
function getNone()

ext/standard/tests/file/parse_ini_file_variation3.phpt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ display_startup_errors = Off
3535
log_errors = Off
3636
ignore_repeated_errors = Off
3737
ignore_repeated_source = Off
38-
report_memleaks = On
3938
docref_root = "/phpmanual/"
4039
docref_ext = .html
4140
@@ -68,7 +67,7 @@ foreach($newdirs as $newdir) {
6867
--EXPECTF--
6968
*** Testing parse_ini_file() : variation ***
7069
New include path is : %sparse_ini_file_variation3.dir1%sparse_ini_file_variation3.dir2%sparse_ini_file_variation3.dir3%S
71-
array(9) {
70+
array(8) {
7271
["error_reporting"]=>
7372
string(5) "30719"
7473
["display_errors"]=>
@@ -81,8 +80,6 @@ array(9) {
8180
string(0) ""
8281
["ignore_repeated_source"]=>
8382
string(0) ""
84-
["report_memleaks"]=>
85-
string(1) "1"
8683
["docref_root"]=>
8784
string(11) "/phpmanual/"
8885
["docref_ext"]=>

ext/standard/tests/serialize/unserialize_mem_leak.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
--TEST--
22
Memleaks if unserialize return a self-referenced array/object
3-
--INI--
4-
report_memleaks=1
53
--FILE--
64
<?php
75
function foo() {

0 commit comments

Comments
 (0)