[
https://issues.apache.org/jira/browse/LOG4PHP-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13062714#comment-13062714
]
Olivier ROMAND commented on LOG4PHP-114:
----------------------------------------
Hey guys, and thanks for the feed-back.
I must admit that even some tests have been writen, it may miss of exhaustivity
to cover this particular case.
I tried the parse_ini_file with the flag mentionned : INI_SCANNER_RAW and it
seems to be a nice workaround for the reserved words (as mentionned in the PHP
Manual:
here are reserved words which must not be used as keys for ini files. These
include: null, yes, no, true, false, on, off, none. Values null, no and false
results in "", yes and true results in "1".)
Though I must say that I haven't run all the tests to make sure that it won't
introduce any regression, it seems to give the value as a string. So false
(without quotes) would give the string false in the array of properties.
As a side effect, the single test I made didn't give me the expected result,
and the additivity parameters, though set to false appended in a strange manner
in the parent appenders.
I would finally agree with Christian and the ini files. They may not be so
readable, but at least their existency allowed me run the project with my
feedback of j2ee developer.
BR
> Order of params in configuration is significant
> -----------------------------------------------
>
> Key: LOG4PHP-114
> URL: https://issues.apache.org/jira/browse/LOG4PHP-114
> Project: Log4php
> Issue Type: Bug
> Components: Code
> Affects Versions: 2.0
> Reporter: Darja Ryazhskikh
> Fix For: 2.2
>
>
> For example. Config as:
> <appender name="default" class="LoggerAppenderDailyFile">
> <param name="datePattern" value="Y-m-d" />
> <param name="file" value="logs/%s.log" />
> </appender>
> works not as:
> <appender name="default" class="LoggerAppenderDailyFile">
> <param name="file" value="logs/%s.log" />
> <param name="datePattern" value="Y-m-d" />
> </appender>
> That's because of setFile happens before datePattern is set. But it is
> unexpected behavior for user.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira