From: Aryeh Gregor Date: Mon, 8 Oct 2018 17:10:36 +0000 (+0300) Subject: Suppress "Headers already sent" in PHP 7.2 too X-Git-Tag: 1.34.0-rc.0~3781^2~1 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=1572f3b1b89abc958da6a7d131553e3b67953403;p=lhc%2Fweb%2Fwiklou.git Suppress "Headers already sent" in PHP 7.2 too The "h" is now capitalized, so we need to update the regex. Change-Id: I1111e1228868ec66d930c7a3b0d7972e5c6356b9 --- diff --git a/tests/phpunit/includes/session/PHPSessionHandlerTest.php b/tests/phpunit/includes/session/PHPSessionHandlerTest.php index b001eb9d7d..b191a2fbf3 100644 --- a/tests/phpunit/includes/session/PHPSessionHandlerTest.php +++ b/tests/phpunit/includes/session/PHPSessionHandlerTest.php @@ -17,7 +17,7 @@ class PHPSessionHandlerTest extends MediaWikiTestCase { // Ignore "headers already sent" warnings during this test set_error_handler( function ( $errno, $errstr ) use ( &$warnings ) { - if ( preg_match( '/headers already sent/', $errstr ) ) { + if ( preg_match( '/[hH]eaders already sent/', $errstr ) ) { return true; } return false;