dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
936b958
)
Suppress "Headers already sent" in PHP 7.2 too
author
Aryeh Gregor
<ayg@aryeh.name>
Mon, 8 Oct 2018 17:10:36 +0000
(20:10 +0300)
committer
Aryeh Gregor
<ayg@aryeh.name>
Mon, 8 Oct 2018 17:10:36 +0000
(20:10 +0300)
The "h" is now capitalized, so we need to update the regex.
Change-Id: I1111e1228868ec66d930c7a3b0d7972e5c6356b9
tests/phpunit/includes/session/PHPSessionHandlerTest.php
patch
|
blob
|
history
diff --git
a/tests/phpunit/includes/session/PHPSessionHandlerTest.php
b/tests/phpunit/includes/session/PHPSessionHandlerTest.php
index
b001eb9
..
b191a2f
100644
(file)
--- 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( '/
h
eaders already sent/', $errstr ) ) {
+ if ( preg_match( '/
[hH]
eaders already sent/', $errstr ) ) {
return true;
}
return false;