Exception
6 years ago
WebAuthException
6 years ago
certs
6 years ago
AppInfo.php
6 years ago
AppInfoLoadException.php
6 years ago
ArrayEntryStore.php
6 years ago
AuthBase.php
6 years ago
AuthInfo.php
6 years ago
AuthInfoLoadException.php
6 years ago
Checker.php
6 years ago
Client.php
6 years ago
Curl.php
6 years ago
CurlStreamRelay.php
6 years ago
DeserializeException.php
6 years ago
DropboxMetadataHeaderCatcher.php
6 years ago
Exception.php
6 years ago
Host.php
6 years ago
HttpResponse.php
6 years ago
OAuth1AccessToken.php
6 years ago
OAuth1Upgrader.php
6 years ago
Path.php
6 years ago
RequestUtil.php
6 years ago
RootCertificates.php
6 years ago
SSLTester.php
6 years ago
Security.php
6 years ago
StreamReadException.php
6 years ago
Util.php
6 years ago
ValueStore.php
6 years ago
WebAuth.php
6 years ago
WebAuthBase.php
6 years ago
WebAuthNoRedirect.php
6 years ago
WriteMode.php
6 years ago
autoload.php
6 years ago
strict.php
6 years ago
strict.php
14 lines
| 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 |