From bfc43e749c50f54cb3e43e32529cdc558eb27cdc Mon Sep 17 00:00:00 2001 From: Developer Date: Mon, 20 Apr 2026 19:42:50 -0400 Subject: [PATCH] FIX: Remove debug message interfering with server capacity calculation The echo statement to stderr was being captured as the function's return value when php-optimizer.sh ran: $(calculate_server_memory_capacity 2>&1) This caused all capacity calculations to fail with 'integer expression expected' errors. --- lib/php-analyzer.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/php-analyzer.sh b/lib/php-analyzer.sh index 0a2903f..6545372 100644 --- a/lib/php-analyzer.sh +++ b/lib/php-analyzer.sh @@ -917,8 +917,6 @@ convert_to_bytes() { # Usage: calculate_server_memory_capacity # Returns: total_required_mb|total_ram_mb|percentage|status|details calculate_server_memory_capacity() { - echo "Analyzing server-wide PHP-FPM memory capacity..." >&2 - # Get total system memory local total_ram_mb total_ram_mb=$(free -m | awk '/^Mem:/ {print $2}')