sendmail_path的.user.ini将不适用于子目录

时间:2018-04-21 03:01:56

标签: php linux ini

我已确认配置

sendmail_path = xxxx
.user.ini中的

不会直接仅应用于子目录。 (其他配置将)

如果我在子文件夹中放置另一个.user.ini,它就可以了。子文件夹中的php.ini也可以正常工作。

这将失去使用.user.ini的目的。在这种情况下对我来说。我可以问这个PHP漏洞吗?和可能的原因?

我的环境是使用WHM的Linux,php 5.6版。

2 个答案:

答案 0 :(得分:-1)

鉴于这种结构:

.
└── a
    ├── a.php
    ├── b
    │   ├── b.php
    │   └── .user.ini   <== [1]
    └── .user.ini  <== [2]

b.php会看到[1]中的设置与[2]合并,其中[2] 中的值替换来自[1]的值。 a.php仅会从[2]中看到设置。

答案 1 :(得分:-1)

(2, 4) defined// Each key is associated with the set of values that it can take on const properties = { "bedrooms": [2, 3], "bathrooms": [1, 2], "floors": [1, 2, 3, 4], } // Start with a single "empty" tuple let tuples = [{}] for (let p in properties) { // For each property, augment all of the old tuples let nextTuples = [] for (let option of properties[p]) { // with each possible option nextTuples = nextTuples.concat(tuples.map(old => ({[p]: option, ...old}))) } tuples = nextTuples; } ,这意味着它只能在系统级别设置文件中设置,例如tuples

相关问题