Files
wevads-platform/debug_framework_constants.php
2026-02-26 04:53:11 +01:00

45 lines
1.5 KiB
PHP
Executable File

<?php
// Test des constantes du framework Wevads
echo "=== FRAMEWORK CONSTANTS DEBUG ===\n";
// Simuler le chargement du framework comme dans un webservice
if (file_exists('app/webservices/Production.php')) {
// Lire le début du fichier webservice pour voir les includes
$content = file_get_contents('app/webservices/Production.php');
if (strpos($content, 'LIBRARIES_PATH') !== false) {
echo "✓ LIBRARIES_PATH is used in webservice\n";
} else {
echo "✗ LIBRARIES_PATH not found in webservice\n";
}
}
// Vérifier si les constantes sont définies
$constants = ['LIBRARIES_PATH', 'DS', 'IR_START'];
foreach ($constants as $constant) {
if (defined($constant)) {
echo "$constant is defined: " . constant($constant) . "\n";
} else {
echo "$constant is NOT defined\n";
}
}
// Tester le chemin direct
$directPath = __DIR__ . '/app/libraries/AmazonCloud.php';
echo "\nDirect path test: $directPath - " . (file_exists($directPath) ? "EXISTS" : "NOT FOUND") . "\n";
// Tester inclusion directe
try {
require_once $directPath;
echo "✓ AmazonCloud.php included successfully via direct path\n";
$amazonCloud = new AmazonCloud();
echo "✓ AmazonCloud instance created successfully\n";
$result = $amazonCloud->testConnection();
echo "✓ testConnection method works: " . ($result['success'] ? 'SUCCESS' : 'FAILED') . "\n";
} catch (Exception $e) {
echo "✗ Error: " . $e->getMessage() . "\n";
}