mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- bugfix a custom cache resource using smarty_cachereource_keyvaluestore.php did fail if php.ini mbstring.func_overload = 2 (forum topic 25568)
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
===== 3.1.25-dev===== (xx.xx.2015)
|
===== 3.1.25-dev===== (xx.xx.2015)
|
||||||
|
13.06.2015
|
||||||
|
- bugfix a custom cache resource using smarty_cachereource_keyvaluestore.php did fail if php.ini mbstring.func_overload = 2 (forum topic 25568)
|
||||||
|
|
||||||
11.06.2015
|
11.06.2015
|
||||||
- bugfix the lexer could hang on very large quoted strings (forum topic 25570)
|
- bugfix the lexer could hang on very large quoted strings (forum topic 25570)
|
||||||
|
|
||||||
|
@@ -111,7 +111,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
|||||||
/**
|
/**
|
||||||
* smarty version
|
* smarty version
|
||||||
*/
|
*/
|
||||||
const SMARTY_VERSION = '3.1.25-dev/5';
|
const SMARTY_VERSION = '3.1.25-dev/6';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* define variable scopes
|
* define variable scopes
|
||||||
|
@@ -298,8 +298,8 @@ abstract class Smarty_CacheResource_KeyValueStore extends Smarty_CacheResource
|
|||||||
*/
|
*/
|
||||||
protected function getMetaTimestamp(&$content)
|
protected function getMetaTimestamp(&$content)
|
||||||
{
|
{
|
||||||
$s = unpack("N", substr($content, 0, 4));
|
$s = unpack("N", $content[0] . $content[1] . $content[2] . $content[3]);
|
||||||
$m = unpack("N", substr($content, 4, 4));
|
$m = unpack("N", $content[4] . $content[5] . $content[6] . $content[7]);
|
||||||
$content = substr($content, 8);
|
$content = substr($content, 8);
|
||||||
|
|
||||||
return $s[1] + ($m[1] / 100000000);
|
return $s[1] + ($m[1] / 100000000);
|
||||||
|
Reference in New Issue
Block a user