Files
wordpress-docker/shared/php-fpm/force-debug.php
Elijah Duffy 811a8c8f51
Some checks failed
php-fpm-build / build (7.4) (push) Failing after 39s
php-fpm: temporarily force debug mode
2025-12-08 18:45:39 -08:00

15 lines
399 B
PHP

<?php
// force-debug.php
// This script is prepended to all PHP requests to force error reporting.
// Set error reporting to the highest level.
error_reporting(E_ALL);
// Ensure errors are displayed directly in the browser.
// This overrides any ini_set('display_errors', 'Off') in the application.
ini_set('display_errors', '1');
// Also ensure errors are logged.
ini_set('log_errors', '1');
?>