You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by ma...@apache.org on 2005/11/27 11:36:54 UTC
svn commit: r349201 -
/logging/log4php/trunk/src/log4php/spi/LoggerLoggingEvent.php
Author: marco
Date: Sun Nov 27 02:36:27 2005
New Revision: 349201
URL: http://svn.apache.org/viewcvs?rev=349201&view=rev
Log:
Fixed php5 debug_backtrace() classname reporting.
Modified:
logging/log4php/trunk/src/log4php/spi/LoggerLoggingEvent.php
Modified: logging/log4php/trunk/src/log4php/spi/LoggerLoggingEvent.php
URL: http://svn.apache.org/viewcvs/logging/log4php/trunk/src/log4php/spi/LoggerLoggingEvent.php?rev=349201&r1=349200&r2=349201&view=diff
==============================================================================
--- logging/log4php/trunk/src/log4php/spi/LoggerLoggingEvent.php (original)
+++ logging/log4php/trunk/src/log4php/spi/LoggerLoggingEvent.php Sun Nov 27 02:36:27 2005
@@ -180,7 +180,7 @@
$hop = array_pop($trace);
while ($hop !== null) {
$className = @$hop['class'];
- if ( !empty($className) and ($className == 'logger' or get_parent_class($className) == 'logger') ) {
+ if ( !empty($className) and (strtolower($className) == 'logger' or strtolower(get_parent_class($className)) == 'logger') ) {
$locationInfo['line'] = $hop['line'];
$locationInfo['file'] = $hop['file'];
break;