"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "framework/utils/CDateTimeParser.php" between
yii-1.1.21.733ac5.tar.gz and yii-1.1.22.bf1d26.tar.gz

About: Yii is a high-performance component-based PHP framework for developing large-scale Web applications. Hint: Yii 1.1 is now in maintenance mode.

CDateTimeParser.php  (yii-1.1.21.733ac5):CDateTimeParser.php  (yii-1.1.22.bf1d26)
skipping to change at line 213 skipping to change at line 213
$hour=0; $hour=0;
elseif($hour<12 && $ampm==='pm') elseif($hour<12 && $ampm==='pm')
$hour+=12; $hour+=12;
} }
$i+=2; $i+=2;
break; break;
} }
default: default:
{ {
$tn=self::$_mbstringAvailable ? mb_strlen ($token,Yii::app()->charset) : strlen($token); $tn=self::$_mbstringAvailable ? mb_strlen ($token,Yii::app()->charset) : strlen($token);
if($i>=$n || ($token{0}!='?' && (self::$_ mbstringAvailable ? mb_substr($value,$i,$tn,Yii::app()->charset) : substr($value ,$i,$tn))!==$token)) if($i>=$n || ($token[0]!='?' && (self::$_ mbstringAvailable ? mb_substr($value,$i,$tn,Yii::app()->charset) : substr($value ,$i,$tn))!==$token))
return false; return false;
$i+=$tn; $i+=$tn;
break; break;
} }
} }
} }
if($i<$n) if($i<$n)
return false; return false;
if(!isset($year)) if(!isset($year))
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)