1--TEST-- 2Test escapeshellarg() allowed argument length 3--FILE-- 4<?php 5ini_set('memory_limit', -1); 6$var_2 = str_repeat('A', 1024*1024*64); 7 8try { 9 escapeshellarg($var_2); 10} catch (Throwable $e) { 11 echo $e::class, ': ', $e->getMessage(), PHP_EOL; 12} 13 14?> 15===DONE=== 16--EXPECTF-- 17ValueError: Argument exceeds the allowed length of %d bytes 18===DONE=== 19