PHP 8.3.30
Preview: Debug.php Size: 1.05 KB
/home/getspomw/.trash/vendor/symfony/error-handler/Debug.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\ErrorHandler;

/**
 * Registers all the debug tools.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
class Debug
{
    public static function enable(): ErrorHandler
    {
        error_reporting(-1);

        if (!\in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
            ini_set('display_errors', 0);
        } elseif (!filter_var(\ini_get('log_errors'), \FILTER_VALIDATE_BOOL) || \ini_get('error_log')) {
            // CLI - display errors only if they're not already logged to STDERR
            ini_set('display_errors', 1);
        }

        @ini_set('zend.assertions', 1);
        ini_set('assert.active', 1);
        ini_set('assert.exception', 1);

        DebugClassLoader::enable();

        return ErrorHandler::register(new ErrorHandler(new BufferingLogger(), true));
    }
}

Directory Contents

Dirs: 6 × Files: 10

Name Size Perms Modified Actions
Error DIR
- drwxrwxrwx 2026-04-19 08:08:07
Edit Download
- drwxrwxrwx 2026-04-19 08:45:07
Edit Download
- drwxrwxrwx 2026-04-19 10:11:12
Edit Download
Exception DIR
- drwxrwxrwx 2025-09-17 06:53:18
Edit Download
Internal DIR
- drwxrwxrwx 2025-09-17 06:53:18
Edit Download
Resources DIR
- drwxrwxrwx 2025-09-17 06:53:18
Edit Download
1.96 KB lrw-rw-rw- 2025-09-17 06:53:18
Edit Download
1007 B lrw-rw-rw- 2025-09-17 06:53:18
Edit Download
1.10 KB lrw-rw-rw- 2025-09-17 06:53:18
Edit Download
1.05 KB lrw-rw-rw- 2025-09-17 06:53:18
Edit Download
49.19 KB lrw-rw-rw- 2025-09-17 06:53:18
Edit Download
26.81 KB lrw-rw-rw- 2025-09-17 06:53:18
Edit Download
620 B lrw-r--r-- 2026-04-19 08:08:52
Edit Download
1.04 KB lrw-rw-rw- 2025-09-17 06:53:18
Edit Download
1.31 KB lrw-rw-rw- 2025-09-17 06:53:18
Edit Download
865 B lrw-rw-rw- 2025-09-17 06:53:18
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).