ranlt / smarty-php

Automatically exported from code.google.com/p/smarty-php
0 stars 0 forks source link

Deprecated warning: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /usr/share/php/smarty/Smarty_Compiler.class.php on line 270 #151

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use php version PHP 5.5.1-2.  

2.
Turn on all warnings including Deprecated warnings.
3.  Use of some smarty templates will spit back this error:
Deprecated: preg_replace(): The /e modifier is deprecated, use 
preg_replace_callback instead in 
/usr/share/php/smarty/Smarty_Compiler.class.php on line 270

What is the expected output? What do you see instead?
expect clean template output, instead get Deprecated warning from smarty library

What version of the product are you using? On what operating system?
Smarty 3.1.14 on Ubuntu Linux 12.04

Please provide any additional information below.

Original issue reported on code.google.com by tchal...@gmail.com on 10 Sep 2013 at 7:16

GoogleCodeExporter commented 9 years ago
A fix is in the SVN trunk under 
https://smarty-php.googlecode.com/svn/branches/Smarty2Dev

Please note that Smarty2 is no longer really supported.
We recommend to upgrade to Smarty 3.1

Original comment by Uwe.Tews@googlemail.com on 10 Sep 2013 at 7:57