You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$config1 = new \Phalcon\Config\Adapter\Ini("a.ini");
$config2 = new \Phalcon\Config\Adapter\Ini("b.ini");
$config1->merge($config2)
Case 1: Merge different sections (OK)
a.ini:
[a]a_1 = 1
b.ini:
[b]b_1 = 1
Merge result:
[a]a_1 = 1
[b]b_1 = 1
Case 2: Merge same section (Fail)
a.ini:
[a]a_1 = 1
b.ini:
[a]a_2 = 1
Merge result:
[a]a_2 = 1
Case 3: Merge \Phalcon\Config (OK)
The following code could get an expected result:
$config1 = new \Phalcon\Config((array)newPhalcon\Config\Adapter\Ini('a.ini'));
$config2 = new \Phalcon\Config((array)newPhalcon\Config\Adapter\Ini('b.ini'));
$config1->merge($config2);
May be a bug? (Phalcon 1.2.1, Windows)
The text was updated successfully, but these errors were encountered:
Case 1: Merge different sections (OK)
a.ini:
b.ini:
Merge result:
Case 2: Merge same section (Fail)
a.ini:
b.ini:
Merge result:
Case 3: Merge \Phalcon\Config (OK)
The following code could get an expected result:
May be a bug? (Phalcon 1.2.1, Windows)
The text was updated successfully, but these errors were encountered: