"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "framework/vendors/TextHighlighter/Text/Highlighter/Generator.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.

Generator.php  (yii-1.1.21.733ac5):Generator.php  (yii-1.1.22.bf1d26)
skipping to change at line 422 skipping to change at line 422
* *
* @param string $text Original RE * @param string $text Original RE
* @return string Final RE * @return string Final RE
* @access private * @access private
*/ */
function _makeRE($text, $case = false) function _makeRE($text, $case = false)
{ {
if (!strlen($text)) { if (!strlen($text)) {
$this->_error(TEXT_HIGHLIGHTER_EMPTY_RE); $this->_error(TEXT_HIGHLIGHTER_EMPTY_RE);
} }
if (!strlen($text) || $text{0} != '/') { if (!strlen($text) || $text[0] != '/') {
$text = '/' . $text . '/'; $text = '/' . $text . '/';
} }
if (!$case) { if (!$case) {
$text .= 'i'; $text .= 'i';
} }
$php_errormsg = ''; $php_errormsg = '';
@preg_match($text, ''); @preg_match($text, '');
if ($php_errormsg) { if ($php_errormsg) {
$this->_error(TEXT_HIGHLIGHTER_INVALID_RE, $php_errormsg); $this->_error(TEXT_HIGHLIGHTER_INVALID_RE, $php_errormsg);
} }
 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)