mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
-bugfix of Iterator object handling in internal _count() method
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
===== SVN trunk =====
|
===== SVN trunk =====
|
||||||
16/01/2011
|
16/01/2011
|
||||||
-bugfix of ArrayAccess object handling in internal _count() method
|
-bugfix of ArrayAccess object handling in internal _count() method
|
||||||
|
-bugfix of Iterator object handling in internal _count() method
|
||||||
|
|
||||||
14/01/2011
|
14/01/2011
|
||||||
-bugfix removed memory leak while processing compileAllTemplates
|
-bugfix removed memory leak while processing compileAllTemplates
|
||||||
|
@@ -864,7 +864,7 @@ class Smarty_Internal_Template extends Smarty_Internal_Data {
|
|||||||
} elseif ($value instanceof Iterator) {
|
} elseif ($value instanceof Iterator) {
|
||||||
$value->rewind();
|
$value->rewind();
|
||||||
if ($value->valid()) {
|
if ($value->valid()) {
|
||||||
return 1;
|
return iterator_count($value);
|
||||||
}
|
}
|
||||||
} elseif ($value instanceof PDOStatement) {
|
} elseif ($value instanceof PDOStatement) {
|
||||||
return $value->rowCount();
|
return $value->rowCount();
|
||||||
|
Reference in New Issue
Block a user