⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.78
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-pear
/
pear
/
php
/
Horde
/
Test
/
Stub
/
Edit File: Cli.php
<?php /** * A test helper for testing Horde_Cli based classes. * * PHP version 5 * * @category Horde * @package Test * @author Gunnar Wrobel <wrobel@pardus.de> * @license http://www.horde.org/licenses/lgpl21 LGPL * @link http://www.horde.org/components/Horde_Test */ /** * A test helper for testing Horde_Cli based classes. * * Copyright 2010-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file COPYING for license information (LGPL). If you * did not receive this file, see http://www.horde.org/licenses/lgpl21. * * @category Horde * @package Test * @author Gunnar Wrobel <wrobel@pardus.de> * @license http://www.horde.org/licenses/lgpl21 LGPL * @link http://www.horde.org/components/Horde_Test */ class Horde_Test_Stub_Cli extends Horde_Cli { /** * Displays a fatal error message. * * @param mixed $error The error text to display, an exception or an * object with a getMessage() method. */ public function fatal($error) { if ($error instanceof Exception) { $trace = $error; } else { $trace = debug_backtrace(); } $backtrace = new Horde_Support_Backtrace($trace); if (is_object($error) && method_exists($error, 'getMessage')) { $error = $error->getMessage(); } $this->writeln($this->red('====================')); $this->writeln(); $this->writeln($this->red('Fatal Error:')); $this->writeln($this->red($error)); $this->writeln(); $this->writeln((string)$backtrace); $this->writeln($this->red('====================')); } }
Simpan