public static function ErrorHandler::stackErrors in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/debug/ErrorHandler.php \Symfony\Component\Debug\ErrorHandler::stackErrors()
Configures the error handler for delayed handling. Ensures also that non-catchable fatal errors are never silenced.
As shown by http://bugs.php.net/42098 and http://bugs.php.net/60724 PHP has a compile stage where it behaves unusually. To workaround it, we plug an error handler that only stacks errors for later.
The most important feature of this is to prevent autoloading until unstackErrors() is called.
2 calls to ErrorHandler::stackErrors()
- DebugClassLoader::loadClass in vendor/
symfony/ debug/ DebugClassLoader.php - Loads the given class or interface.
- ErrorHandlerTest::testErrorStacking in vendor/
symfony/ debug/ Tests/ ErrorHandlerTest.php
File
- vendor/
symfony/ debug/ ErrorHandler.php, line 582
Class
- ErrorHandler
- A generic ErrorHandler for the PHP engine.
Namespace
Symfony\Component\DebugCode
public static function stackErrors() {
self::$stackedErrorLevels[] = error_reporting(error_reporting() | E_PARSE | E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR);
}