Hi,
For 2.7.1, there is at least one case where I cannot just reemploy my previous version of config.inc.php.
Those new lines $cfg['Export']['file_template_table'] = '__TABLE__'; $cfg['Export']['file_template_database'] = '__DB__'; $cfg['Export']['file_template_server'] = '__SERVER__';
present in config.default.php are not used, if I have a config.inc.php with some other $cfg['Export'] parameters.
Marc
Hi
On Friday 02 December 2005 20:43, Marc Delisle wrote:
For 2.7.1, there is at least one case where I cannot just reemploy my previous version of config.inc.php.
Those new lines $cfg['Export']['file_template_table'] = '__TABLE__'; $cfg['Export']['file_template_database'] = '__DB__'; $cfg['Export']['file_template_server'] = '__SERVER__';
present in config.default.php are not used, if I have a config.inc.php with some other $cfg['Export'] parameters.
This is same for all arrays in config, I don't know how Sebastian wanted to solve this, however there is still my quick solution to fix not working configuration using array_merge which fails in such cases.
Marc Delisle schrieb:
Hi,
For 2.7.1, there is at least one case where I cannot just reemploy my previous version of config.inc.php.
Those new lines $cfg['Export']['file_template_table'] = '__TABLE__'; $cfg['Export']['file_template_database'] = '__DB__'; $cfg['Export']['file_template_server'] = '__SERVER__';
present in config.default.php are not used, if I have a config.inc.php with some other $cfg['Export'] parameters.
i do not fully understand ... can you please give a step by step instruction to reproduce what is wrong and tell me what you expect?
Hi
On Monday 05 December 2005 12:50, Sebastian Mendel wrote:
i do not fully understand ... can you please give a step by step instruction to reproduce what is wrong and tell me what you expect?
<?php $cfg1 = array(); $cfg1['Export']['one'] = 'something';
$cfg2 = array(); $cfg2['Export']['two'] = 'something';
$cfg =array_merge($cfg1, $cfg2); print_r($cfg); ?>
Gives:
Array ( [Export] => Array ( [two] => something )
)
However resulting configuration should have both one *and* two.
Michal Čihař schrieb:
Hi
On Monday 05 December 2005 12:50, Sebastian Mendel wrote:
i do not fully understand ... can you please give a step by step instruction to reproduce what is wrong and tell me what you expect?
<?php $cfg1 = array(); $cfg1['Export']['one'] = 'something'; $cfg2 = array(); $cfg2['Export']['two'] = 'something'; $cfg =array_merge($cfg1, $cfg2); print_r($cfg); ?>
Gives:
Array ( [Export] => Array ( [two] => something )
)
However resulting configuration should have both one *and* two.
Can you please check CVS? Should be fixed now.
Sebastian Mendel a écrit :
Michal Čihař schrieb:
Hi
On Monday 05 December 2005 12:50, Sebastian Mendel wrote:
i do not fully understand ... can you please give a step by step instruction to reproduce what is wrong and tell me what you expect?
<?php $cfg1 = array(); $cfg1['Export']['one'] = 'something'; $cfg2 = array(); $cfg2['Export']['two'] = 'something'; $cfg =array_merge($cfg1, $cfg2); print_r($cfg); ?>
Gives:
Array ( [Export] => Array ( [two] => something )
)
However resulting configuration should have both one *and* two.
Can you please check CVS? Should be fixed now.
Confirmed, thanks!
Marc
Hi
On Monday 05 December 2005 14:17, Sebastian Mendel wrote:
Can you please check CVS? Should be fixed now.
Just noticed that same applies to server configuration (for IP based access list in AllowDeny).
Michal Čihař schrieb:
Hi
On Monday 05 December 2005 14:17, Sebastian Mendel wrote:
Can you please check CVS? Should be fixed now.
Just noticed that same applies to server configuration (for IP based access list in AllowDeny).
IMHO this is another problem, im alraedy aware of
the $servers array is not emptied, this means if you have three servers and than change your config.inc.hp to only have two servers, the third server is not removed
similar/same problem should be yours
Sebastian Mendel schrieb:
Michal Čihař schrieb:
Hi
On Monday 05 December 2005 14:17, Sebastian Mendel wrote:
Can you please check CVS? Should be fixed now.
Just noticed that same applies to server configuration (for IP based access list in AllowDeny).
IMHO this is another problem, im alraedy aware of
the $servers array is not emptied, this means if you have three servers and than change your config.inc.hp to only have two servers, the third server is not removed
similar/same problem should be yours
should be fixed in CVS