Author: jim
Date: Thu Nov  1 10:48:40 2007
New Revision: 591099

URL: http://svn.apache.org/viewvc?rev=591099&view=rev
Log:
First of all, {} string indexing is deprecated in PHP6 (yeah,
a change from what they said about it with PHP4), so prepare
for that. Also, do the more general test 1st for speed.

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

Modified: incubator/log4php/trunk/src/main/php/LoggerPropertyConfigurator.php
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/LoggerPropertyConfigurator.php?rev=591099&r1=591098&r2=591099&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/LoggerPropertyConfigurator.php 
(original)
+++ incubator/log4php/trunk/src/main/php/LoggerPropertyConfigurator.php Thu Nov 
 1 10:48:40 2007
@@ -520,7 +520,7 @@
         // If value is not in the form ", appender.." or "", then we should set
         // the level of the loggeregory.
 
-        if(!(@$value{0} == ',' || empty($value))) {
+        if(!(empty($value) || @$value[0] == ',')) {
             // just to be on the safe side...
             if(sizeof($st) == 0)
                     return;


Reply via email to