"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "framework/vendors/markdown/markdown.php" between
yii-1.1.23.445827.tar.gz and yii-1.1.24.a5ab20.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.

markdown.php  (yii-1.1.23.445827):markdown.php  (yii-1.1.24.a5ab20)
skipping to change at line 1423 skipping to change at line 1423
} }
return $line; return $line;
} }
protected function utf8_strlen($string) { protected function utf8_strlen($string) {
if (function_exists('mb_strlen')) { if (function_exists('mb_strlen')) {
return mb_strlen($string, 'UTF-8'); return mb_strlen($string, 'UTF-8');
} }
return preg_match_all( return preg_match_all(
"/[\x00-\xBF]|[\xC0-\xFF][\x80-\xBF]*/", '/[\x00-\xBF]|[\xC0-\xFF][\x80-\xBF]*/',
$text, $string,
$m $m
); );
} }
public function unhash($text) { public function unhash($text) {
# #
# Swap back in all the tags hashed by _HashHTMLBlocks. # Swap back in all the tags hashed by _HashHTMLBlocks.
# #
return preg_replace_callback('/(.)\x1A[0-9]+\1/', return preg_replace_callback('/(.)\x1A[0-9]+\1/',
array(&$this, '_unhash_callback'), $text); array(&$this, '_unhash_callback'), $text);
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

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