public static function ErrorHandler::stop in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-stdlib/src/ErrorHandler.php \Zend\Stdlib\ErrorHandler::stop()
Stopping the error handler
Parameters
bool $throw Throw the ErrorException if any:
Return value
null|ErrorException
Throws
ErrorException If an error has been catched and $throw is true
4 calls to ErrorHandler::stop()
- Glob::systemGlob in vendor/
zendframework/ zend-stdlib/ src/ Glob.php - Use the glob function provided by the system.
- Reader::detectType in vendor/
zendframework/ zend-feed/ src/ Reader/ Reader.php - Detect the feed type of the provided feed
- Reader::importFile in vendor/
zendframework/ zend-feed/ src/ Reader/ Reader.php - Imports a feed from a file located at $filename.
- StringUtils::hasPcreUnicodeSupport in vendor/
zendframework/ zend-stdlib/ src/ StringUtils.php - Is PCRE compiled with Unicode support?
File
- vendor/
zendframework/ zend-stdlib/ src/ ErrorHandler.php, line 68
Class
- ErrorHandler
- ErrorHandler that can be used to catch internal PHP errors and convert to an ErrorException instance.
Namespace
Zend\StdlibCode
public static function stop($throw = false) {
$errorException = null;
if (static::$stack) {
$errorException = array_pop(static::$stack);
if (!static::$stack) {
restore_error_handler();
}
if ($errorException && $throw) {
throw $errorException;
}
}
return $errorException;
}