PluginProbe
JetBackup – Backup, Restore & Migrate / 1.4.6
JetBackup – Backup, Restore & Migrate v1.4.6
3.1.23.6 3.1.23.5 3.1.23.3 3.1.22.4 3.1.22.3 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.8.1 1.4.9 1.5.0 1.5.1 1.5.1.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6.0 1.6.10 All 82 releases
backup / com / lib / Dropbox / strict.php

strict.php in JetBackup – Backup, Restore & Migrate 1.4.6, at com/lib/Dropbox/strict.php

14 lines 538 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // Throw exceptions on all PHP errors/warnings/notices.
3 // We'd like to do this in all situations (and not just when running tests), but
4 // this is a global setting and other code might not be ready for it.
5 /** @internal */
6 function error_to_exception($errno, $errstr, $errfile, $errline, $context)
7 {
8 // If the error is being suppressed with '@', don't throw an exception.
9 if (error_reporting() === 0) return;
10
11 throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
12 }
13 set_error_handler('error_to_exception');
14