summaryrefslogtreecommitdiff
path: root/community/mythplugins/php55.patch
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/mythplugins/php55.patch
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/mythplugins/php55.patch')
-rw-r--r--community/mythplugins/php55.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/community/mythplugins/php55.patch b/community/mythplugins/php55.patch
new file mode 100644
index 000000000..eba7fd696
--- /dev/null
+++ b/community/mythplugins/php55.patch
@@ -0,0 +1,22 @@
+--- a/mythweb/includes/errors.php
++++ b/mythweb/includes/errors.php
+@@ -103,6 +103,9 @@
+ /**/
+ function error_handler($errno, $errstr, $errfile, $errline, $vars) {
+ global $db;
++ // Leave early if we haven't requested reports from this kind of error
++ if (!($errno & error_reporting()))
++ return;
+ if (class_exists('Translate'))
+ $errstr = Translate::find()->string($errstr);
+ // Try to auto-repair damaged SQL tables
+@@ -113,9 +116,6 @@
+ add_error('Regular Expression Error: '.$match[1]);
+ return;
+ }
+- // Leave early if we haven't requested reports from this kind of error
+- if (!($errno & error_reporting()))
+- return;
+ // Fatal errors should report considerably more detail
+ if (in_array($errno, array(E_USER_ERROR, E_ERROR))) {
+ // What type of error?