Version Description
- Improvements to the shutdown handler for PHP errors, so it handles syntax and compilation errors too.
Download this release
Release Info
Developer | johnbillion |
Plugin | Query Monitor |
Version | 2.7.3 |
Comparing to | |
See all releases |
Code changes from version 2.7.2 to 2.7.3
- collectors/php_errors.php +3 -1
- query-monitor.php +1 -1
- readme.txt +5 -2
collectors/php_errors.php
CHANGED
@@ -120,12 +120,14 @@ class QM_Collector_PHP_Errors extends QM_Collector {
|
|
120 |
return;
|
121 |
}
|
122 |
|
123 |
-
if ( empty( $e ) or ! ( $e['type'] & ( E_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR ) ) ) {
|
124 |
return;
|
125 |
}
|
126 |
|
127 |
if ( $e['type'] & E_RECOVERABLE_ERROR ) {
|
128 |
$error = 'Catchable fatal error';
|
|
|
|
|
129 |
} else {
|
130 |
$error = 'Fatal error';
|
131 |
}
|
120 |
return;
|
121 |
}
|
122 |
|
123 |
+
if ( empty( $e ) or ! ( $e['type'] & ( E_ERROR | E_PARSE | E_COMPILE_ERROR | E_COMPILE_WARNING | E_USER_ERROR | E_RECOVERABLE_ERROR ) ) ) {
|
124 |
return;
|
125 |
}
|
126 |
|
127 |
if ( $e['type'] & E_RECOVERABLE_ERROR ) {
|
128 |
$error = 'Catchable fatal error';
|
129 |
+
} else if ( $e['type'] & E_COMPILE_WARNING ) {
|
130 |
+
$error = 'Warning';
|
131 |
} else {
|
132 |
$error = 'Fatal error';
|
133 |
}
|
query-monitor.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Query Monitor
|
4 |
Description: Monitoring of database queries, hooks, conditionals and more.
|
5 |
-
Version: 2.7.
|
6 |
Plugin URI: https://querymonitor.com/
|
7 |
Author: John Blackbourn
|
8 |
Author URI: https://johnblackbourn.com/
|
2 |
/*
|
3 |
Plugin Name: Query Monitor
|
4 |
Description: Monitoring of database queries, hooks, conditionals and more.
|
5 |
+
Version: 2.7.3
|
6 |
Plugin URI: https://querymonitor.com/
|
7 |
Author: John Blackbourn
|
8 |
Author URI: https://johnblackbourn.com/
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: johnbillion
|
3 |
Tags: debug, debug-bar, debugging, development, developer, performance, profiler, profiling, queries, query monitor
|
4 |
Requires at least: 3.5
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 2.7.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
View debugging and performance information on database queries, hooks, conditionals, HTTP requests, redirects and more.
|
@@ -156,6 +156,9 @@ No, I do not accept donations. If you like the plugin, I'd love for you to [leav
|
|
156 |
|
157 |
== Changelog ==
|
158 |
|
|
|
|
|
|
|
159 |
= 2.7.2 =
|
160 |
* Implement a shutdown handler for PHP errors to avoid fatals being unintentionally hidden when `display_errors` is on.
|
161 |
* Don't attempt to do anything with scripts and styles if a corresponding header action hasn't fired.
|
2 |
Contributors: johnbillion
|
3 |
Tags: debug, debug-bar, debugging, development, developer, performance, profiler, profiling, queries, query monitor
|
4 |
Requires at least: 3.5
|
5 |
+
Tested up to: 4.2
|
6 |
+
Stable tag: 2.7.3
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
View debugging and performance information on database queries, hooks, conditionals, HTTP requests, redirects and more.
|
156 |
|
157 |
== Changelog ==
|
158 |
|
159 |
+
= 2.7.3 =
|
160 |
+
* Improvements to the shutdown handler for PHP errors, so it handles syntax and compilation errors too.
|
161 |
+
|
162 |
= 2.7.2 =
|
163 |
* Implement a shutdown handler for PHP errors to avoid fatals being unintentionally hidden when `display_errors` is on.
|
164 |
* Don't attempt to do anything with scripts and styles if a corresponding header action hasn't fired.
|