The "h" is now capitalized, so we need to update the regex.
Change-Id: I1111e1228868ec66d930c7a3b0d7972e5c6356b9
// Ignore "headers already sent" warnings during this test
set_error_handler( function ( $errno, $errstr ) use ( &$warnings ) {
// 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;
return true;
}
return false;