mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
tree: remove some usages of the report_memleaks INI setting (#19407)
This commit is contained in:
committed by
GitHub
parent
1f131e3ae6
commit
c5143c0b22
@@ -1,7 +1,5 @@
|
||||
--TEST--
|
||||
Bug #67368 (Memory leak with immediately dereferenced array in class constant)
|
||||
--INI--
|
||||
report_memleaks=1
|
||||
--FILE--
|
||||
<?php
|
||||
class FooBar {
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
Bug #81104: Warning: "Failed to set memory limit to ... bytes" emitted after exit in debug
|
||||
--INI--
|
||||
memory_limit=5M
|
||||
report_memleaks=0
|
||||
--FILE--
|
||||
<?php
|
||||
#[AllowDynamicProperties]
|
||||
|
||||
@@ -3,8 +3,6 @@ Bug #26698 (Thrown exceptions while evaluating argument to pass as parameter cra
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
ini_set("report_memleaks", 0); // the exception thrown in this test results in a memory leak, which is fine
|
||||
|
||||
class ObjectOne
|
||||
{
|
||||
function getNone()
|
||||
|
||||
@@ -35,7 +35,6 @@ display_startup_errors = Off
|
||||
log_errors = Off
|
||||
ignore_repeated_errors = Off
|
||||
ignore_repeated_source = Off
|
||||
report_memleaks = On
|
||||
docref_root = "/phpmanual/"
|
||||
docref_ext = .html
|
||||
|
||||
@@ -68,7 +67,7 @@ foreach($newdirs as $newdir) {
|
||||
--EXPECTF--
|
||||
*** Testing parse_ini_file() : variation ***
|
||||
New include path is : %sparse_ini_file_variation3.dir1%sparse_ini_file_variation3.dir2%sparse_ini_file_variation3.dir3%S
|
||||
array(9) {
|
||||
array(8) {
|
||||
["error_reporting"]=>
|
||||
string(5) "30719"
|
||||
["display_errors"]=>
|
||||
@@ -81,8 +80,6 @@ array(9) {
|
||||
string(0) ""
|
||||
["ignore_repeated_source"]=>
|
||||
string(0) ""
|
||||
["report_memleaks"]=>
|
||||
string(1) "1"
|
||||
["docref_root"]=>
|
||||
string(11) "/phpmanual/"
|
||||
["docref_ext"]=>
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
--TEST--
|
||||
Memleaks if unserialize return a self-referenced array/object
|
||||
--INI--
|
||||
report_memleaks=1
|
||||
--FILE--
|
||||
<?php
|
||||
function foo() {
|
||||
|
||||
Reference in New Issue
Block a user