Changeset View
Changeset View
Standalone View
Standalone View
support/PhabricatorStartup.php
| Show First 20 Lines • Show All 116 Lines • ▼ Show 20 Lines | if (!$registered) { | ||||
| // interpreter state, which we may implement in the future. | // interpreter state, which we may implement in the future. | ||||
| register_shutdown_function(array(__CLASS__, 'didShutdown')); | register_shutdown_function(array(__CLASS__, 'didShutdown')); | ||||
| $registered = true; | $registered = true; | ||||
| } | } | ||||
| self::setupPHP(); | self::setupPHP(); | ||||
| self::verifyPHP(); | self::verifyPHP(); | ||||
| // If we've made it this far, the environment isn't completely broken so | |||||
| // we can switch over to relying on our own exception recovery mechanisms. | |||||
| ini_set('display_errors', 0); | |||||
| if (isset($_SERVER['REMOTE_ADDR'])) { | if (isset($_SERVER['REMOTE_ADDR'])) { | ||||
| self::rateLimitRequest($_SERVER['REMOTE_ADDR']); | self::rateLimitRequest($_SERVER['REMOTE_ADDR']); | ||||
| } | } | ||||
| self::normalizeInput(); | self::normalizeInput(); | ||||
| self::verifyRewriteRules(); | self::verifyRewriteRules(); | ||||
| ▲ Show 20 Lines • Show All 724 Lines • Show Last 20 Lines | |||||