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 ch...@apache.org on 2009/10/10 18:28:16 UTC

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

Author: chammers
Date: Sat Oct 10 16:28:15 2009
New Revision: 823880

URL: http://svn.apache.org/viewvc?rev=823880&view=rev
Log:
There should be no case where strtolower or get_object_class gives a warning so the @ can be omitted.

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

Modified: incubator/log4php/trunk/src/main/php/LoggerLoggingEvent.php
URL: http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/LoggerLoggingEvent.php?rev=823880&r1=823879&r2=823880&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/LoggerLoggingEvent.php (original)
+++ incubator/log4php/trunk/src/main/php/LoggerLoggingEvent.php Sat Oct 10 16:28:15 2009
@@ -164,10 +164,10 @@
 				// make a downsearch to identify the caller
 				$hop = array_pop($trace);
 				while($hop !== null) {
-					$className = @strtolower($hop['class']);
+					$className = strtolower($hop['class']);
 					if(!empty($className) and ($className == 'logger' or $className == 'loggercategory' or 
-						@strtolower(get_parent_class($className)) == 'logger' or
-						@strtolower(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;