From: George Peter Banyard Date: Sun, 14 Jul 2019 01:45:31 +0000 (+0200) Subject: Cleanup of remaining E_STRICT in tests X-Git-Tag: php-7.4.0beta2~62 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d6d954d0d28f488f743e6c9d0cd9ab01e1c4e41;p=php Cleanup of remaining E_STRICT in tests --- 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