Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 8925 bytes)
in D:\xampp\htdocs\testlink\lib\results\resultsTC.php on line 586
已將 memory_limit = 1024M 但仍報錯(1073741824 bytes = 1024M)。
D:\xampp\php\php.ini (CLI 模式)D:\xampp\apache\bin\php.ini (Apache 模式,**Web 請求生效**).htaccess 可能含 php_value memory_limit 256M 覆蓋全局設置。ini_set('memory_limit', '512M') 降低限制。tried to allocate 8925 bytes 很小,說明是**累積分配**達到上限,而非單次大分配。info.php:,瀏覽器訪問確認 memory_limit 實際值。D:\xampp\apache\bin\php.ini 中 memory_limit = 1024M(或 -1 無限制)。.htaccess 和代碼 ini_set。max_execution_time 防止超時。