Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有必须从控制台(php-cli)运行的 php 脚本。但是 php-cli 的 php.ini 配置不正确。我修复了它,但是当我运行脚本时,php config 出现错误,因为 php.ini 使用旧的。
如何在不重新启动服务器的情况下为控制台重新加载 php.ini?
每次从 CLI 调用 PHP 时,都会重新加载配置。