From 5ba478b1f14c8912403e4300a2b745c6eaaca73e Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Tue, 17 Oct 2023 22:47:14 +0200 Subject: [PATCH] Be more strict about when to reset this ini value. --- collectors/php_errors.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collectors/php_errors.php b/collectors/php_errors.php index 9e0004bd9..9aaf0149b 100644 --- a/collectors/php_errors.php +++ b/collectors/php_errors.php @@ -124,7 +124,7 @@ public function tear_down() { error_reporting( $this->error_reporting ); } - if ( false !== $this->display_errors ) { + if ( is_string( $this->display_errors ) ) { ini_set( 'display_errors', $this->display_errors ); }