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 ji...@apache.org on 2008/09/26 15:43:30 UTC

svn commit: r699322 - /incubator/log4php/trunk/src/main/php/spi/LoggerLoggingEvent.php

Author: jim
Date: Fri Sep 26 06:43:29 2008
New Revision: 699322

URL: http://svn.apache.org/viewvc?rev=699322&view=rev
Log:
                Key: LOG4PHP-19
                                URL: https://issues.apache.org/jira/browse/LOG4PHP-19
                                            Project: Log4php
                                                     Issue Type: Bug
                                                             Environment: log4php r692607,
                                                             PHP 5.2.4-2ubuntu5.3 with Suhosin-Patch 0.9.6.2,
                                                             Ubuntu 8.04 
                                                                        Reporter: Yomei Komiya


Modified:
    incubator/log4php/trunk/src/main/php/spi/LoggerLoggingEvent.php

Modified: incubator/log4php/trunk/src/main/php/spi/LoggerLoggingEvent.php
URL: http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/spi/LoggerLoggingEvent.php?rev=699322&r1=699321&r2=699322&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/spi/LoggerLoggingEvent.php (original)
+++ incubator/log4php/trunk/src/main/php/spi/LoggerLoggingEvent.php Fri Sep 26 06:43:29 2008
@@ -184,7 +184,8 @@
                 while ($hop !== null) {
                     $className = @strtolower($hop['class']);
                     if ( !empty($className) and ($className == 'logger' or $className == 'loggercategory' or 
-                                get_parent_class($className) == 'logger') or get_parent_class($className) == 'loggercategory') {
+                                @strtolower(get_parent_class($className)) == 'logger' or
+                                @strtolower(get_parent_class($className)) == 'loggercategory')) {
                         $locationInfo['line'] = $hop['line'];
                         $locationInfo['file'] = $hop['file'];                         
                         break;