From d26c76b9d81d63ba60df8b28d11b590b6be56eef Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Fri, 12 Jun 2026 17:20:59 +0800 Subject: [PATCH] =?UTF-8?q?feat(optimizer):=20=E6=89=A9=E5=B1=95=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E8=B0=83=E7=94=A8=E4=BC=98=E5=8C=96=E5=99=A8=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=9B=B4=E5=A4=9A=E5=AD=97=E7=AC=A6=E4=B8=B2=E5=92=8C?= =?UTF-8?q?=E7=BC=96=E7=A0=81=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 base64 编码解码函数优化支持 (base64_encode, base64_decode) - 添加 URL 编码解码函数优化支持 (urlencode, urldecode, rawurlencode, rawurldecode) - 扩展优化器对常用字符串处理函数的覆盖范围 --- src/Php/Optimizer/FuncCallOptimizer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Php/Optimizer/FuncCallOptimizer.php b/src/Php/Optimizer/FuncCallOptimizer.php index 4c390238..5c941762 100644 --- a/src/Php/Optimizer/FuncCallOptimizer.php +++ b/src/Php/Optimizer/FuncCallOptimizer.php @@ -68,6 +68,8 @@ trait FuncCallOptimizer 'array_is_list', 'is_dir', 'is_file', 'file_exists', 'realpath', 'time', 'in_array', 'array_search', 'date', 'strtotime', 'md5', 'sha1', 'hash', 'print_r', + 'base64_encode', 'base64_decode', + 'urlencode', 'urldecode', 'rawurlencode', 'rawurldecode', 'json_encode', 'json_decode', 'serialize', 'unserialize', 'random_int', 'random_bytes', 'mt_rand', 'rand', 'strstr', 'strrpos', 'is_a', 'is_subclass_of',