[
https://issues.apache.org/jira/browse/LOG4PHP-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13554905#comment-13554905
]
Dmitriy Ulyanov commented on LOG4PHP-205:
-----------------------------------------
PHP 5.3.*, from documentation: "Possible returned elements from
debug_backtrace(): function, file, line, etc.".
Values are possible, but not required.
Any error in recursive calls of callbacks will not return file or line, for
example.
> debug_backtrace() sometimes do not return 'file' and 'line' values
> ------------------------------------------------------------------
>
> Key: LOG4PHP-205
> URL: https://issues.apache.org/jira/browse/LOG4PHP-205
> Project: Log4php
> Issue Type: Bug
> Components: Code
> Affects Versions: 2.3.0
> Reporter: Dmitriy Ulyanov
> Priority: Critical
>
> debug_backtrace() sometimes do not return 'file' and 'line' values.
> This results in an error (Notice).
> Please, add "isset" in code: LoggerLoggingEvent.php, lines: 172-173
> .....
> $locationInfo['line'] = $hop['line'];
> $locationInfo['file'] = $hop['file'];
> .....
> Thank you!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira