sed -i 's/,scandir//g' /usr/local/php/etc/php.ini

取消scandir函数禁用

/etc/init.d/php-fpm restart

重启 PHP生效