<?php
/**
 * Final cleanup module.
 * The old monolithic file had: file_exists(error_log), which is fatal on PHP 8
 * because error_log is treated as an undefined constant. Keep cleanup safe.
 */
$legacyErrorLog = __DIR__ . '/../../error_log';
if (is_file($legacyErrorLog) && filesize($legacyErrorLog) > 5 * 1024 * 1024) {
    @unlink($legacyErrorLog);
}
