PHP修改替换官方函数 闲话不多说直接上货 例:替换PHP内置函数 error_log() 把代码准备好然后在 php.ini 文件里 加一行 auto_prepend_file = /acs/user/php/sdk/acs_prepare.php(PHP文件位置) 最后重启PHP服务。