From 9345c191db71a5d0125218b60d333b3ef293df27 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 12 Jul 2019 12:17:24 +0200 Subject: [PATCH] Remove unnecessary uses of restore_include_path() in tests --- ext/standard/tests/file/file_get_contents_variation1.phpt | 1 - ext/standard/tests/file/file_get_contents_variation2.phpt | 1 - ext/standard/tests/file/file_put_contents_variation4.phpt | 1 - ext/standard/tests/file/file_put_contents_variation6.phpt | 1 - ext/standard/tests/file/fopen_variation12.phpt | 1 - ext/standard/tests/file/fopen_variation13.phpt | 1 - ext/standard/tests/file/fopen_variation16.phpt | 1 - ext/standard/tests/file/fopen_variation17.phpt | 1 - ext/standard/tests/file/fopen_variation5.phpt | 1 - ext/standard/tests/file/fopen_variation7.phpt | 1 - ext/standard/tests/file/fopen_variation8.phpt | 1 - ext/standard/tests/file/fopen_variation9.phpt | 1 - ext/standard/tests/file/readfile_variation6.phpt | 1 - ext/standard/tests/file/readfile_variation7.phpt | 1 - ext/zlib/tests/gzfile_variation15.phpt | 1 - ext/zlib/tests/gzopen_variation4.phpt | 1 - ext/zlib/tests/gzopen_variation5.phpt | 1 - ext/zlib/tests/readgzfile_variation15.phpt | 1 - 18 files changed, 18 deletions(-) diff --git a/ext/standard/tests/file/file_get_contents_variation1.phpt b/ext/standard/tests/file/file_get_contents_variation1.phpt index 12bfd325ae..eb502e0527 100644 --- a/ext/standard/tests/file/file_get_contents_variation1.phpt +++ b/ext/standard/tests/file/file_get_contents_variation1.phpt @@ -28,7 +28,6 @@ $newpath = create_include_path(); set_include_path($newpath); runtest(); teardown_include_path(); -restore_include_path(); chdir(".."); rmdir($thisTestDir); diff --git a/ext/standard/tests/file/file_get_contents_variation2.phpt b/ext/standard/tests/file/file_get_contents_variation2.phpt index c1f07d920f..8c24246aaa 100644 --- a/ext/standard/tests/file/file_get_contents_variation2.phpt +++ b/ext/standard/tests/file/file_get_contents_variation2.phpt @@ -29,7 +29,6 @@ $newpath = create_include_path(); set_include_path($newpath); runtest(); teardown_include_path(); -restore_include_path(); chdir(".."); rmdir($thisTestDir); diff --git a/ext/standard/tests/file/file_put_contents_variation4.phpt b/ext/standard/tests/file/file_put_contents_variation4.phpt index 339e9b73a7..c7df0194ff 100644 --- a/ext/standard/tests/file/file_put_contents_variation4.phpt +++ b/ext/standard/tests/file/file_put_contents_variation4.phpt @@ -28,7 +28,6 @@ set_include_path($newpath); runtest(); teardown_include_path(); -restore_include_path(); chdir(".."); rmdir($thisTestDir); diff --git a/ext/standard/tests/file/file_put_contents_variation6.phpt b/ext/standard/tests/file/file_put_contents_variation6.phpt index 7f963a01fe..85f2aad363 100644 --- a/ext/standard/tests/file/file_put_contents_variation6.phpt +++ b/ext/standard/tests/file/file_put_contents_variation6.phpt @@ -29,7 +29,6 @@ set_include_path($newpath); runtest(); teardown_include_path(); -restore_include_path(); chdir(".."); rmdir($thisTestDir); diff --git a/ext/standard/tests/file/fopen_variation12.phpt b/ext/standard/tests/file/fopen_variation12.phpt index 91d482276a..2f79be1b63 100644 --- a/ext/standard/tests/file/fopen_variation12.phpt +++ b/ext/standard/tests/file/fopen_variation12.phpt @@ -12,7 +12,6 @@ Dave Kelsey set_include_path("rubbish"); testme(); -restore_include_path(); function testme() { diff --git a/ext/standard/tests/file/fopen_variation13.phpt b/ext/standard/tests/file/fopen_variation13.phpt index 76cf084029..4d613a9145 100644 --- a/ext/standard/tests/file/fopen_variation13.phpt +++ b/ext/standard/tests/file/fopen_variation13.phpt @@ -21,7 +21,6 @@ set_include_path($newpath); runtest(); teardown_include_path(); -restore_include_path(); function runtest() { diff --git a/ext/standard/tests/file/fopen_variation16.phpt b/ext/standard/tests/file/fopen_variation16.phpt index 023586c396..5888688fa8 100644 --- a/ext/standard/tests/file/fopen_variation16.phpt +++ b/ext/standard/tests/file/fopen_variation16.phpt @@ -25,7 +25,6 @@ set_include_path($newpath); runtest(); teardown_include_path(); -restore_include_path(); chdir(".."); rmdir($thisTestDir); diff --git a/ext/standard/tests/file/fopen_variation17.phpt b/ext/standard/tests/file/fopen_variation17.phpt index 429650564b..5d639e8236 100644 --- a/ext/standard/tests/file/fopen_variation17.phpt +++ b/ext/standard/tests/file/fopen_variation17.phpt @@ -25,7 +25,6 @@ set_include_path($newpath); runtest(); teardown_include_path(); -restore_include_path(); chdir(".."); rmdir($thisTestDir); diff --git a/ext/standard/tests/file/fopen_variation5.phpt b/ext/standard/tests/file/fopen_variation5.phpt index b5c7edbfbb..a3f5c1d3be 100644 --- a/ext/standard/tests/file/fopen_variation5.phpt +++ b/ext/standard/tests/file/fopen_variation5.phpt @@ -45,7 +45,6 @@ $modes = array("r", "r+", "rt"); foreach($modes as $mode) { test_fopen($mode); } -restore_include_path(); // remove the directory structure chdir($baseDir); diff --git a/ext/standard/tests/file/fopen_variation7.phpt b/ext/standard/tests/file/fopen_variation7.phpt index 9cb40a0019..531b27e0bc 100644 --- a/ext/standard/tests/file/fopen_variation7.phpt +++ b/ext/standard/tests/file/fopen_variation7.phpt @@ -24,7 +24,6 @@ set_include_path($newpath); runtest(); teardown_include_path(); -restore_include_path(); chdir(".."); rmdir($thisTestDir); diff --git a/ext/standard/tests/file/fopen_variation8.phpt b/ext/standard/tests/file/fopen_variation8.phpt index 7e02aa8efe..3647191128 100644 --- a/ext/standard/tests/file/fopen_variation8.phpt +++ b/ext/standard/tests/file/fopen_variation8.phpt @@ -45,7 +45,6 @@ $modes = array("r", "r+", "rt"); foreach($modes as $mode) { test_fopen($mode); } -restore_include_path(); // remove the directory structure chdir($baseDir); diff --git a/ext/standard/tests/file/fopen_variation9.phpt b/ext/standard/tests/file/fopen_variation9.phpt index bee941eb94..5479ddcf2d 100644 --- a/ext/standard/tests/file/fopen_variation9.phpt +++ b/ext/standard/tests/file/fopen_variation9.phpt @@ -25,7 +25,6 @@ set_include_path($newpath); runtest(); teardown_relative_path(); -restore_include_path(); chdir(".."); rmdir($thisTestDir); diff --git a/ext/standard/tests/file/readfile_variation6.phpt b/ext/standard/tests/file/readfile_variation6.phpt index dca6f4df67..38e0f23958 100644 --- a/ext/standard/tests/file/readfile_variation6.phpt +++ b/ext/standard/tests/file/readfile_variation6.phpt @@ -27,7 +27,6 @@ $newpath = create_include_path(); set_include_path($newpath); runtest(); teardown_include_path(); -restore_include_path(); chdir(".."); rmdir($thisTestDir); diff --git a/ext/standard/tests/file/readfile_variation7.phpt b/ext/standard/tests/file/readfile_variation7.phpt index 601453573e..955d77bd27 100644 --- a/ext/standard/tests/file/readfile_variation7.phpt +++ b/ext/standard/tests/file/readfile_variation7.phpt @@ -27,7 +27,6 @@ $newpath = create_include_path(); set_include_path($newpath); runtest(); teardown_include_path(); -restore_include_path(); chdir(".."); rmdir($thisTestDir); diff --git a/ext/zlib/tests/gzfile_variation15.phpt b/ext/zlib/tests/gzfile_variation15.phpt index 866348efa0..77028fbd09 100644 --- a/ext/zlib/tests/gzfile_variation15.phpt +++ b/ext/zlib/tests/gzfile_variation15.phpt @@ -14,7 +14,6 @@ require_once('reading_include_path.inc'); //define the files to go into these directories, create one in dir2 set_include_path($newIncludePath); test_gzfile(); -restore_include_path(); // remove the directory structure chdir($baseDir); diff --git a/ext/zlib/tests/gzopen_variation4.phpt b/ext/zlib/tests/gzopen_variation4.phpt index 1648b75fb9..6a00c30670 100644 --- a/ext/zlib/tests/gzopen_variation4.phpt +++ b/ext/zlib/tests/gzopen_variation4.phpt @@ -26,7 +26,6 @@ $modes = array("r", "r+", "rt"); foreach($modes as $mode) { test_gzopen($mode); } -restore_include_path(); // remove the directory structure chdir($baseDir); diff --git a/ext/zlib/tests/gzopen_variation5.phpt b/ext/zlib/tests/gzopen_variation5.phpt index c223efeb15..99ba6a0b96 100644 --- a/ext/zlib/tests/gzopen_variation5.phpt +++ b/ext/zlib/tests/gzopen_variation5.phpt @@ -29,7 +29,6 @@ set_include_path($newpath); runtest(); teardown_relative_path(); -restore_include_path(); chdir(".."); rmdir($thisTestDir); diff --git a/ext/zlib/tests/readgzfile_variation15.phpt b/ext/zlib/tests/readgzfile_variation15.phpt index 48115c7fdb..70f566446e 100644 --- a/ext/zlib/tests/readgzfile_variation15.phpt +++ b/ext/zlib/tests/readgzfile_variation15.phpt @@ -14,7 +14,6 @@ require_once('reading_include_path.inc'); //define the files to go into these directories, create one in dir2 set_include_path($newIncludePath); test_readgzfile(); -restore_include_path(); // remove the directory structure chdir($baseDir); -- 2.40.0