ErrorException [ Deprecated ]: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

MODPATH/newsplant/classes/Text.php [ 191 ]

186 		foreach($utf8_patterns as $pattern)
187 		{
188 		
189 			$new_str = preg_replace("/($pattern)/e", 
190 							"'\u'.hexdec(bin2hex(mb_convert_encoding('$1', 'UTF-16', 'UTF-8'))).'?'", 
191 							$new_str);
192 	
193 		}
194 		
195 		return $new_str;
196 	
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. MODPATH/newsplant/classes/Text.php [ 191 ] » preg_replace(arguments)

  3. APPPATH/views/classic/rtf/article.php [ 10 ] » Text::utf8_to_rtf(arguments)

  4. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  5. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  6. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()

  7. {PHP internal call} » Kohana_View->__toString()

  8. MODPATH/newsplant/classes/Model/Newsplant/Article.php [ 1033 ] » file_put_contents(arguments)

  9. MODPATH/newsplant/classes/Model/Newsplant/Article.php [ 830 ] » Model_Newsplant_Article->write_rtf()

  10. APPPATH/classes/Task/Newsplanttickler.php [ 56 ] » Model_Newsplant_Article->publish()

  11. MODPATH/minion/classes/Kohana/Minion/Task.php [ 250 ] » Task_Newsplanttickler->_execute(arguments)

  12. DOCROOT/index.php [ 120 ] » Kohana_Minion_Task->execute()

Environment