ErrorException [ Warning ]: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead

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

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

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

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

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

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

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

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

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

  9. MODPATH/newsplant/classes/Model/Newsplant/Article.php [ 935 ] » 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 [ 121 ] » Kohana_Minion_Task->execute()

Environment