From 6d6d954d0d28f488f743e6c9d0cd9ab01e1c4e41 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Sun, 14 Jul 2019 03:45:31 +0200 Subject: [PATCH] Cleanup of remaining E_STRICT in tests --- Zend/tests/bug33771.phpt | 6 +++--- Zend/tests/bug52160.phpt | 2 +- Zend/tests/bug62956.phpt | 2 +- Zend/tests/bug64988.phpt | 2 +- Zend/tests/bug67436/bug67436_nohandler.phpt | 2 +- Zend/tests/error_reporting02.phpt | 4 ++-- Zend/tests/error_reporting03.phpt | 4 ++-- Zend/tests/error_reporting04.phpt | 4 ++-- Zend/tests/error_reporting08.phpt | 4 ++-- Zend/tests/error_reporting09.phpt | 4 ++-- Zend/tests/exception_004.phpt | 2 -- ext/pdo/pdo_stmt.c | 2 +- ext/pdo_mysql/tests/pdo_mysql_subclass.phpt | 8 ++------ ext/pdo_pgsql/tests/bug72294.phpt | 2 +- ext/phar/util.c | 2 +- ext/soap/tests/bugs/bug46427.phpt | 1 - .../tests/general_functions/parse_ini_booleans.data | 4 ++-- ext/standard/tests/mail/mail_basic_alt1-win32.phpt | 1 - ext/standard/tests/mail/mail_basic_alt2-win32.phpt | 2 -- ext/standard/tests/mail/mail_basic_alt3-win32.phpt | 2 -- ext/standard/tests/mail/mail_basic_alt4-win32.phpt | 2 -- ext/standard/tests/mail/mail_variation_alt1-win32.phpt | 1 - ext/standard/tests/mail/mail_variation_alt2-win32.phpt | 1 - ext/standard/tests/mail/mail_variation_alt3-win32.phpt | 1 - ext/zip/examples/get_set_comments.php | 1 - run-tests.php | 4 ++-- tests/func/011.phpt | 4 ++-- tests/func/bug64523.phpt | 4 ++-- 28 files changed, 30 insertions(+), 48 deletions(-) diff --git a/Zend/tests/bug33771.phpt b/Zend/tests/bug33771.phpt index 0f3dd9815f..6eea49edbe 100644 --- a/Zend/tests/bug33771.phpt +++ b/Zend/tests/bug33771.phpt @@ -3,7 +3,7 @@ Bug #33771 (error_reporting falls to 0 when @ was used inside try/catch block) --FILE-- protocol(); - return call_user_func_array(array($this, 'parent::exec'), func_get_args()); + return parent::exec($statement); } public function query() { diff --git a/ext/pdo_pgsql/tests/bug72294.phpt b/ext/pdo_pgsql/tests/bug72294.phpt index 9ef4a424bb..bd5124ff17 100644 --- a/ext/pdo_pgsql/tests/bug72294.phpt +++ b/ext/pdo_pgsql/tests/bug72294.phpt @@ -74,7 +74,7 @@ class PHPUnit_Framework_TestResult $oldErrorHandler = set_error_handler( 'handleError', - E_ALL | E_STRICT + E_ALL ); try { diff --git a/ext/phar/util.c b/ext/phar/util.c index 59a6cd7c88..53982b0f85 100644 --- a/ext/phar/util.c +++ b/ext/phar/util.c @@ -934,7 +934,7 @@ int phar_free_alias(phar_archive_data *phar, char *alias, size_t alias_len) /* { return FAILURE; } - /* this archive has no open references, so emit an E_STRICT and remove it */ + /* this archive has no open references, so emit a notice and remove it */ if (zend_hash_str_del(&(PHAR_G(phar_fname_map)), phar->fname, phar->fname_len) != SUCCESS) { return FAILURE; } diff --git a/ext/soap/tests/bugs/bug46427.phpt b/ext/soap/tests/bugs/bug46427.phpt index a49071e21a..38d53518b8 100644 --- a/ext/soap/tests/bugs/bug46427.phpt +++ b/ext/soap/tests/bugs/bug46427.phpt @@ -4,7 +4,6 @@ Bug #46427 (SoapClient() stumbles over its "stream_context" parameter) --FILE-- --EXPECT-- -10248 +8204 diff --git a/tests/func/bug64523.phpt b/tests/func/bug64523.phpt index 88adc43959..d360f097ff 100644 --- a/tests/func/bug64523.phpt +++ b/tests/func/bug64523.phpt @@ -1,10 +1,10 @@ --TEST-- Bug #64523: XOR not parsed in INI --INI-- -error_reporting = E_ALL ^ E_NOTICE ^ E_STRICT ^ E_DEPRECATED +error_reporting = E_ALL ^ E_NOTICE ^ E_WARNING ^ E_DEPRECATED --FILE-- --EXPECT-- -22519 +24565 -- 2.40.0