John Davidson

javascript - Deprecated: preg_replace(): The /e modifier is deprecated

0 comments
Message:


it tells me that I have to make the change here.



Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in


/var/home/cetemsco/public_html/Web/include/smarty/Smarty_Compiler.class.php on line 270



$source_content = preg_replace_callback($search.'e', "'"
. $this->_quote_replac
($this->left_delimiter) . 'php'
. "' . str_repeat(\"\n\", substr_count('\\0', \"\n\")) .'"
. $this->_quote_replace($this->right_delimiter)
. "'"
, $source_content);


My Answer:
function($matches) {
return eval($matches[1]);
}, $source_content);

Rate this post

5 of 5 based on 8601 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us