true, 'debug' => [ 'get_params' => $_GET, 'post_params' => $_POST, 'server' => $_SERVER, 'php_version' => PHP_VERSION, 'memory_limit' => ini_get('memory_limit'), 'max_execution_time' => ini_get('max_execution_time'), 'error_reporting' => error_reporting(), 'display_errors' => ini_get('display_errors') ], 'message' => 'Debug API работает' ]); } catch (Exception $e) { http_response_code(500); echo json_encode([ 'success' => false, 'error' => $e->getMessage(), 'trace' => $e->getTraceAsString() ]); } ?>