Author: grobmeier
Date: Sun Jul 19 23:13:27 2009
New Revision: 795658

URL: http://svn.apache.org/viewvc?rev=795658&view=rev
Log:
LOG4PHP-43: Remove size restriction of MDC table in LoggerMDC (patch from Knut)

Modified:
    incubator/log4php/trunk/src/changes/changes.xml
    incubator/log4php/trunk/src/main/php/LoggerMDC.php

Modified: incubator/log4php/trunk/src/changes/changes.xml
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/changes/changes.xml?rev=795658&r1=795657&r2=795658&view=diff
==============================================================================
--- incubator/log4php/trunk/src/changes/changes.xml (original)
+++ incubator/log4php/trunk/src/changes/changes.xml Sun Jul 19 23:13:27 2009
@@ -55,6 +55,7 @@
                <action type="update" issue="LOG4PHP-38">Replace is_a() with 
instanceof (Knut Urdalen)</action>
                <action type="update" issue="LOG4PHP-39">Remove deprecated 
methods (Knut Urdalen)</action>
                <action type="update" issue="LOG4PHP-40">Merge LoggerAppender 
and LoggerAppenderSkeleton (Christian Grobmeier)</action>
+               <action type="update" issue="LOG4PHP-43">Remove size 
restriction of MDC table in LoggerMDC (Knut Urdalen)</action>
                <action type="update" issue="LOG4PHP-44">PEAR package (Knut 
Urdalen)</action>
                <action type="update" issue="LOG4PHP-52">Use of custom factorys 
is discouraged - clean up (Christian Grobmeier)</action>
                <action type="fix" issue="LOG4PHP-54">PHPDoc is wrong due to 
class movements - clean up (Christian Grobmeier)</action>

Modified: incubator/log4php/trunk/src/main/php/LoggerMDC.php
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/LoggerMDC.php?rev=795658&r1=795657&r2=795658&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/LoggerMDC.php (original)
+++ incubator/log4php/trunk/src/main/php/LoggerMDC.php Sun Jul 19 23:13:27 2009
@@ -38,8 +38,6 @@
  * @package log4php
  */
 class LoggerMDC {
-       const HT_SIZE = 7;
-  
        /**
         * Put a context value as identified with the key parameter into the 
current thread's
         *      context map.
@@ -54,9 +52,7 @@
         * @static
         */
        public static function put($key, $value) {
-               if(count($GLOBALS['log4php.LoggerMDC.ht']) < self::HT_SIZE) {
-                       $GLOBALS['log4php.LoggerMDC.ht'][$key] = $value;
-               }
+               $GLOBALS['log4php.LoggerMDC.ht'][$key] = $value;
        }
   
        /**


Reply via email to