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 解释器是否首先加载它找到的 php.ini(根据其搜索算法)并停止。还是它会加载整个 php.ini 层次结构并合并设置?
因此,如果我需要覆盖单个网站的单个设置 - 我需要指定所有值,还是只需要指定与“更高级别”php.ini 不同的值?
只有一个文件被加载和解析。查看源代码。它基本上构建php_ini_scanned_path然后zend_parse_ini_strings它。只有一个呼叫 tozend_parse_ini_string和一个呼叫 to php_init_config。
php_ini_scanned_path
zend_parse_ini_string
php_init_config