TP5 提示scandir函数被禁用

image

环境

  • ThinkPHP 5.1.19
  • nginx/1.12.2
  • PHP 7.1.8

    请求

    Screen Shot 2019-12-12 at 11.39.14 AM.png

    解决

  • 修改 php.ini 中 disable_functions ,删除 scandir 函数并保存。
  • 关闭 php 。
    1
    killall php-fpm
  • 重启 php 。
    1
    /usr/local/php/sbin/php-fpm &
  • 请求成功
    Screen Shot 2019-12-12 at 11.51.00 AM.png
-------------本文结束感谢您的阅读-------------
0%