[ 
https://issues.apache.org/jira/browse/LOG4PHP-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13094369#comment-13094369
 ] 

Ivan Habunek commented on LOG4PHP-148:
--------------------------------------

This seems to be a leftover from the days of yore. I did a svn log search and 
this class never existed since the initial import to svn in 2004. Frankly, I'm 
not even sure what it's supposed to do since it is not documented. Some kind of 
user fields apparently. :)

I have removed the offending snippet from LoggerPatternParser.

> LoggerUserFieldPatternConverter class missing in log4php archive
> ----------------------------------------------------------------
>
>                 Key: LOG4PHP-148
>                 URL: https://issues.apache.org/jira/browse/LOG4PHP-148
>             Project: Log4php
>          Issue Type: Bug
>          Components: Code
>    Affects Versions: 2.1
>            Reporter: Karan Jain
>
> In helpers/LoggerPatternParser.php, Line 305, the code makes use of a class 
> called LoggerUserFieldPatternConverter whereas this class is not present 
> anywhere in the archive.
> The code fragment looks like -
> case 'u':
>                               if($this->i < $this->patternLength) {
>                                       $cNext = $this->pattern{$this->i};
>                                       if(ord($cNext) >= ord('0') and 
> ord($cNext) <= ord('9')) {
>                                               $pc = new 
> LoggerUserFieldPatternConverter($this->formattingInfo, (string)(ord($cNext) - 
> ord('0')));
>                                               $this->currentLiteral = '';
>                                               $this->i++;
>                                       }
>                               }
>                               break;

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to