feat(optimizer): 扩展函数调用优化器支持更多字符串和编码函数

- 添加 base64 编码解码函数优化支持 (base64_encode, base64_decode)
- 添加 URL 编码解码函数优化支持 (urlencode, urldecode, rawurlencode, rawurldecode)
- 扩展优化器对常用字符串处理函数的覆盖范围
pull/1/head
韩天峰 2 months ago
parent abed2d8d22
commit d26c76b9d8
  1. 2
      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',

Loading…
Cancel
Save