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 2007/11/01 18:48:41 UTC
svn commit: r591099 -
/incubator/log4php/trunk/src/main/php/LoggerPropertyConfigurator.php
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;