- Fix RedisCache driver to handle MGET failures gracefully with fallback - Add comprehensive discovery context comparison debug tools - Identify root cause: WEB context discovery missing 166 items vs CLI - WEB context missing RequestFactory class entirely (52 vs 69 commands) - Improved exception handling with detailed binding diagnostics
27 lines
850 B
PHP
27 lines
850 B
PHP
<?php
|
|
// Simple production test endpoint
|
|
declare(strict_types=1);
|
|
|
|
// Load environment
|
|
$envFile = __DIR__ . '/../.env';
|
|
if (file_exists($envFile)) {
|
|
$lines = file($envFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
|
|
foreach ($lines as $line) {
|
|
if (strpos($line, '#') === 0) continue;
|
|
if (strpos($line, '=') !== false) {
|
|
[$key, $value] = explode('=', $line, 2);
|
|
$_ENV[trim($key)] = trim($value);
|
|
}
|
|
}
|
|
}
|
|
|
|
header('Content-Type: application/json');
|
|
|
|
echo json_encode([
|
|
'status' => 'production-test',
|
|
'app_env' => $_ENV['APP_ENV'] ?? 'not-set',
|
|
'app_debug' => $_ENV['APP_DEBUG'] ?? 'not-set',
|
|
'analytics_track_performance' => $_ENV['ANALYTICS_TRACK_PERFORMANCE'] ?? 'not-set',
|
|
'xdebug_mode' => $_ENV['XDEBUG_MODE'] ?? 'not-set',
|
|
'timestamp' => date('Y-m-d H:i:s')
|
|
]); |