- bugfix Smarty failed when executing PHP on HHVM (Hip Hop 2.4) because uniqid('',true) does return string with ',' (forum topic 20343)

This commit is contained in:
Uwe.Tews@googlemail.com
2014-02-17 18:21:31 +00:00
parent bfa0ce8ba4
commit f06013927c
5 changed files with 8 additions and 5 deletions
@@ -203,7 +203,7 @@ abstract class Smarty_Internal_TemplateCompilerBase
*/
public function __construct()
{
$this->nocache_hash = str_replace('.', '-', uniqid(rand(), true));
$this->nocache_hash = str_replace(array('.',','), '-', uniqid(rand(), true));
}
/**