Subversion-Projekte lars-tiefland.laravel_shop

Revision

Zur aktuellen Revision | Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
# Changelog
2
All notable changes to this project will be documented in this file.
3
 
4
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
 
7
## [Unreleased]
8
 
9
## [4.3.0] - 2022-11-22
10
 
11
### Added
12
- PHP8.2 compatibility [#775](https://github.com/smarty-php/smarty/pull/775)
13
 
14
### Changed
15
- Include docs and demo in the releases [#799](https://github.com/smarty-php/smarty/issues/799)
16
- Using PHP functions as modifiers now triggers a deprecation notice because we will drop support for this in the next major release [#813](https://github.com/smarty-php/smarty/issues/813)
17
-  Dropped remaining references to removed PHP-support in Smarty 4 from docs, lexer and security class. [#816](https://github.com/smarty-php/smarty/issues/816)
18
- Support umask when writing (template) files and set dir permissions to 777 [#548](https://github.com/smarty-php/smarty/issues/548) [#819](https://github.com/smarty-php/smarty/issues/819)
19
 
20
### Fixed
21
- Output buffer is now cleaned for internal PHP errors as well, not just for Exceptions [#514](https://github.com/smarty-php/smarty/issues/514)
22
- Fixed recursion and out of memory errors when caching in complicated template set-ups using inheritance and includes [#801](https://github.com/smarty-php/smarty/pull/801)
23
- Fixed PHP8.1 deprecation errors in strip_tags
24
- Fix Variable Usage in Exception message when unable to load subtemplate [#808](https://github.com/smarty-php/smarty/pull/808)
25
- Fixed PHP8.1 deprecation notices for strftime [#672](https://github.com/smarty-php/smarty/issues/672)
26
- Fixed PHP8.1 deprecation errors passing null to parameter in trim [#807](https://github.com/smarty-php/smarty/pull/807)
27
- Adapt Smarty upper/lower functions to be codesafe (e.g. for Turkish locale) [#586](https://github.com/smarty-php/smarty/pull/586)
28
- Bug fix for underscore and limited length in template name in custom resources [#581](https://github.com/smarty-php/smarty/pull/581)
29
 
30
 
31
## [4.2.1] - 2022-09-14
32
 
33
### Security
34
- Applied appropriate javascript and html escaping in mailto plugin to counter injection attacks [#454](https://github.com/smarty-php/smarty/issues/454)
35
 
36
### Fixed
37
- Fixed PHP8.1 deprecation notices in modifiers (upper, explode, number_format and replace) [#755](https://github.com/smarty-php/smarty/pull/755) and [#788](https://github.com/smarty-php/smarty/pull/788)
38
- Fixed PHP8.1 deprecation notices in capitalize modifier [#789](https://github.com/smarty-php/smarty/issues/789)
39
- Fixed use of `rand()` without a parameter in math function [#794](https://github.com/smarty-php/smarty/issues/794)
40
- Fixed unselected year/month/day not working in html_select_date [#395](https://github.com/smarty-php/smarty/issues/395)
41
 
42
## [4.2.0] - 2022-08-01
43
 
44
### Fixed
45
- Fixed problems with smarty_mb_str_replace [#549](https://github.com/smarty-php/smarty/issues/549)
46
- Fixed second parameter of unescape modifier not working [#777](https://github.com/smarty-php/smarty/issues/777)
47
 
48
### Changed
49
- Updated HTML of the debug template [#599](https://github.com/smarty-php/smarty/pull/599)
50
 
51
## [4.1.1] - 2022-05-17
52
 
53
### Security
54
- Prevent PHP injection through malicious block name or include file name. This addresses CVE-2022-29221
55
 
56
### Fixed
57
- Exclude docs and demo from export and composer [#751](https://github.com/smarty-php/smarty/pull/751)
58
- PHP 8.1 deprecation notices in demo/plugins/cacheresource.pdo.php [#706](https://github.com/smarty-php/smarty/issues/706)
59
- PHP 8.1 deprecation notices in truncate modifier [#699](https://github.com/smarty-php/smarty/issues/699)
60
- Math equation `max(x, y)` didn't work anymore [#721](https://github.com/smarty-php/smarty/issues/721)
61
- Fix PHP 8.1 deprecated warning when calling rtrim [#743](https://github.com/smarty-php/smarty/pull/743)
62
- PHP 8.1: fix deprecation in escape modifier [#727](https://github.com/smarty-php/smarty/pull/727)
63
 
64
## [4.1.0] - 2022-02-06
65
 
66
### Added
67
- PHP8.1 compatibility [#713](https://github.com/smarty-php/smarty/pull/713)
68
 
69
## [4.0.4] - 2022-01-18
70
 
71
### Fixed
72
- Fixed illegal characters bug in math function security check [#702](https://github.com/smarty-php/smarty/issues/702)
73
 
74
## [4.0.3] - 2022-01-10
75
 
76
### Security
77
- Prevent evasion of the `static_classes` security policy. This addresses CVE-2021-21408
78
 
79
## [4.0.2] - 2022-01-10
80
 
81
### Security
82
- Prevent arbitrary PHP code execution through maliciously crafted expression for the math function. This addresses CVE-2021-29454
83
 
84
## [4.0.1] - 2022-01-09
85
 
86
### Security
87
- Rewrote the mailto function to not use `eval` when encoding with javascript
88
 
89
## [4.0.0] - 2021-11-25
90
 
91
## [4.0.0-rc.0] - 2021-10-13
92
 
93
### Added
94
- You can now use `$smarty->muteUndefinedOrNullWarnings()` to activate convert warnings about undefined or null template vars to notices when running PHP8
95
 
96
### Changed
97
- Switch CI from Travis to Github CI
98
- Updated unit tests to avoid skipped and risky test warnings
99
 
100
### Removed
101
- Dropped support for PHP7.0 and below, so Smarty now requires PHP >=7.1
102
- Dropped support for php asp tags in templates (removed from php since php7.0)
103
- Dropped deprecated API calls that where only accessible through SmartyBC
104
- Dropped support for {php} and {include_php} tags and embedded PHP in templates. Embedded PHP will now be passed through as is.
105
- Removed all PHP_VERSION_ID and compare_version checks and conditional code blocks that are now no longer required
106
- Dropped deprecated SMARTY_RESOURCE_CHAR_SET and SMARTY_RESOURCE_DATE_FORMAT constants
107
- Dropped deprecated Smarty::muteExpectedErrors and Smarty::unmuteExpectedErrors API methods
108
- Dropped deprecated $smarty->getVariable() method. Use $smarty->getTemplateVars() instead.
109
- $smarty->registerResource() no longer accepts an array of callback functions
110
 
111
## [3.1.40] - 2021-10-13
112
 
113
### Changed
114
- modifier escape now triggers a E_USER_NOTICE when an unsupported escape type is used https://github.com/smarty-php/smarty/pull/649
115
 
116
### Security
117
- More advanced javascript escaping to handle https://html.spec.whatwg.org/multipage/scripting.html#restrictions-for-contents-of-script-elements thanks to m-haritonov
118
 
119
## [3.1.39] - 2021-02-17
120
 
121
### Security
122
- Prevent access to `$smarty.template_object` in sandbox mode. This addresses CVE-2021-26119.
123
- Fixed code injection vulnerability by using illegal function names in `{function name='blah'}{/function}`. This addresses CVE-2021-26120.
124
 
125
## [3.1.38] - 2021-01-08
126
 
127
### Fixed
128
- Smarty::SMARTY_VERSION wasn't updated https://github.com/smarty-php/smarty/issues/628
129
 
130
## [3.1.37] - 2021-01-07
131
 
132
### Changed
133
- Changed error handlers and handling of undefined constants for php8-compatibility (set $errcontext argument optional) https://github.com/smarty-php/smarty/issues/605
134
- Changed expected error levels in unit tests for php8-compatibility
135
- Travis unit tests now run for all php versions >= 5.3, including php8
136
- Travis runs on Xenial where possible
137
 
138
### Fixed
139
- PHP5.3 compatibility fixes
140
- Brought lexer source functionally up-to-date with compiled version
141
 
142
## [3.1.36] - 2020-04-14
143
 
144
### Fixed
145
 - Smarty::SMARTY_VERSION wasn't updated in v3.1.35 https://github.com/smarty-php/smarty/issues/584
146
 
147
## [3.1.35] - 2020-04-14
148
 - remove whitespaces after comments https://github.com/smarty-php/smarty/issues/447
149
 - fix foreachelse on arrayiterators https://github.com/smarty-php/smarty/issues/506
150
 - fix files contained in git export archive for package maintainers https://github.com/smarty-php/smarty/issues/325
151
 - throw SmartyException when setting caching attributes for cacheable plugin https://github.com/smarty-php/smarty/issues/457
152
 - fix errors that occured where isset was replaced with null check such as https://github.com/smarty-php/smarty/issues/453
153
 - unit tests are now in the repository
154
 
155
## 3.1.34 release - 05.11.2019
156
13.01.2020
157
 - fix typo in exception message (JercSi)
158
 - fix typehint warning with callable (bets4breakfast)
159
 - add travis badge and compatability info to readme (matks)
160
 - fix stdClass cast when compiling foreach (carpii)
161
 - fix wrong set/get methods for memcached (IT-Experte)
162
 - fix pborm assigning value to object variables in smarty_internal_compile_assign (Hunman)
163
 - exclude error_reporting.ini from git export (glensc)
164
 
165
## 3.1.34-dev-6 -
166
30.10.2018
167
 - bugfix a nested subblock in an inheritance child template was not replace by
168
   outer level block with same name in same child template https://github.com/smarty-php/smarty/issues/500
169
 
170
29.10.2018
171
 - bugfix Smarty::$php_handling == PHP_PASSTHRU (default) did eat the "\n" (newline) character if it did directly followed
172
   a PHP tag like "?>" or other https://github.com/smarty-php/smarty/issues/501
173
 
174
14.10.2018
175
 - bugfix autoloader exit shortcut https://github.com/smarty-php/smarty/issues/467
176
 
177
11.10.2018
178
 - bugfix {insert} not works when caching is enabled and included template is present
179
   https://github.com/smarty-php/smarty/issues/496
180
 - bugfix in date-format modifier; NULL at date string or default_date did not produce correct output
181
   https://github.com/smarty-php/smarty/pull/458
182
 
183
09.10.2018
184
 - bugfix fix of 26.8.2017 https://github.com/smarty-php/smarty/issues/327
185
   modifier is applied to sum expression https://github.com/smarty-php/smarty/issues/491
186
 - bugfix indexed arrays could not be defined "array(...)""
187
 
188
18.09.2018
189
  - bugfix large plain text template sections without a Smarty tag > 700kB could
190
    could fail in version 3.1.32 and 3.1.33 because PHP preg_match() restrictions
191
    https://github.com/smarty-php/smarty/issues/488
192
 
193
## 3.1.33 release - 12.09.2018
194
## 3.1.33-dev-12 -
195
03.09.2018
196
  - bugfix {foreach} using new style property access like {$item@property} on
197
    Smarty 2 style named foreach loop could produce errors https://github.com/smarty-php/smarty/issues/484
198
 
199
31.08.2018
200
  - bugfix some custom left and right delimiters like '{^' '^}' did not work
201
    https://github.com/smarty-php/smarty/issues/450 https://github.com/smarty-php/smarty/pull/482
202
 
203
  - reformating for PSR-2 coding standards https://github.com/smarty-php/smarty/pull/483
204
 
205
  - bugfix on Windows absolute filepathes did fail if the drive letter was followed by a linux DIRECTORY_SEPARATOR
206
    like C:/  at Smarty > 3.1.33-dev-5 https://github.com/smarty-php/smarty/issues/451
207
 
208
  - PSR-2 code style fixes for config and template file Lexer/Parser generated with
209
    the Smarty Lexer/Parser generator from https://github.com/smarty-php/smarty-lexer
210
    https://github.com/smarty-php/smarty/pull/483
211
 
212
26.08.2018
213
  - bugfix/enhancement {capture} allow variable as capture block name in Smarty special variable
214
    like $smarty.capture.$foo https://github.com/smarty-php/smarty/issues/478 https://github.com/smarty-php/smarty/pull/481
215
 
216
## 3.1.33-dev-6 -
217
19.08.2018
218
  - fix PSR-2 coding standards and PHPDoc blocks https://github.com/smarty-php/smarty/pull/452
219
    https://github.com/smarty-php/smarty/pull/475
220
    https://github.com/smarty-php/smarty/pull/473
221
  - bugfix PHP5.2 compatibility https://github.com/smarty-php/smarty/pull/472
222
 
223
## 3.1.33-dev-4 -
224
17.05.2018
225
 - bugfix strip-block produces different output in Smarty v3.1.32 https://github.com/smarty-php/smarty/issues/436
226
 - bugfix Smarty::compileAllTemplates ignores `$extension` parameter https://github.com/smarty-php/smarty/issues/437
227
   https://github.com/smarty-php/smarty/pull/438
228
 - improvement do not compute total property in {foreach} if not needed https://github.com/smarty-php/smarty/issues/443
229
 - bugfix  plugins may not be loaded when setMergeCompiledIncludes is true https://github.com/smarty-php/smarty/issues/435
230
 
231
26.04.2018
232
 - bugfix  regarding Security Vulnerability did not solve the problem under Linux.
233
   Security issue CVE-2018-16831
234
 
235
## 3.1.32 - (24.04.2018)
236
24.04.2018
237
 - bugfix  possible Security Vulnerability in Smarty_Security class.
238
 
239
26.03.2018
240
 - bugfix plugins may not be loaded if {function} or {block} tags are executed in nocache mode
241
   https://github.com/smarty-php/smarty/issues/371
242
 
243
26.03.2018
244
 - new feature {parent} =  {$smarty.block.parent} {child} =  {$smarty.block.child}
245
 
246
23.03.2018
247
 - bugfix preg_replace could fail on large content resulting in a blank page https://github.com/smarty-php/smarty/issues/417
248
 
249
21.03.2018
250
 - bugfix {$smarty.section...} used outside {section}{/section} showed incorrect values if {section}{/section} was called inside
251
   another loop https://github.com/smarty-php/smarty/issues/422
252
 - bugfix short form of {section} attributes did not work https://github.com/smarty-php/smarty/issues/428
253
 
254
17.03.2018
255
 - improvement Smarty::compileAllTemplates() exit with a non-zero status code if max errors is reached https://github.com/smarty-php/smarty/pull/402
256
 
257
16.03.2018
258
 - bugfix extends resource did not work with user defined left/right delimiter https://github.com/smarty-php/smarty/issues/419
259
 
260
22.11.2017
261
 - bugfix {break} and {continue} could fail if {foreach}{/foreach} did contain other
262
   looping tags like {for}, {section} and {while} https://github.com/smarty-php/smarty/issues/323
263
 
264
20.11.2017
265
  - bugfix rework of newline spacing between tag code and template text.
266
    now again identical with Smarty2 (forum topic 26878)
267
  - replacement of " by '
268
 
269
05.11.2017
270
  - lexer/parser optimization
271
  - code cleanup and optimizations
272
  - bugfix {$smarty.section.name.loop} used together with {$smarty.section.name.total} could produce
273
    wrong results (forum topic 27041)
274
 
275
26.10.2017
276
  - bugfix Smarty version was  not filled in header comment of compiled and cached  files
277
  - optimization replace internal Smarty::$ds property by DIRECTORY_SEPARATOR
278
  - deprecate functions Smarty::muteExpectedErrors() and Smarty::unmuteExpectedErrors()
279
    as Smarty does no longer use error suppression like @filemtime().
280
    for backward compatibility code is moved from Smarty class to an external class and still can be
281
    called.
282
  - correction of PHPDoc blocks
283
  - minor code cleanup
284
 
285
21.10.2017
286
  - bugfix custom delimiters could fail since modification of  version 3.1.32-dev-23
287
    https://github.com/smarty-php/smarty/issues/394
288
 
289
18.10.2017
290
  - bugfix fix implementation of unclosed block tag in double quoted string of 12.10.2017
291
    https://github.com/smarty-php/smarty/issues/396 https://github.com/smarty-php/smarty/issues/397
292
    https://github.com/smarty-php/smarty/issues/391 https://github.com/smarty-php/smarty/issues/392
293
 
294
12.10.2017
295
  - bugfix $smarty.block.child and $smarty.block.parent could not be used like any
296
    $smarty special variable https://github.com/smarty-php/smarty/issues/393
297
  - unclosed block tag in double quoted string must throw compiler exception.
298
     https://github.com/smarty-php/smarty/issues/391 https://github.com/smarty-php/smarty/issues/392
299
 
300
07.10.2017
301
  - bugfix modification of 9.8.2017 did fail on some recursive
302
    tag nesting. https://github.com/smarty-php/smarty/issues/389
303
 
304
26.8.2017
305
  - bugfix chained modifier failed when last modifier parameter is a signed value
306
    https://github.com/smarty-php/smarty/issues/327
307
  - bugfix templates filepath with multibyte characters did not work
308
    https://github.com/smarty-php/smarty/issues/385
309
  - bugfix {make_nocache} did display code if the template did not contain other nocache code
310
    https://github.com/smarty-php/smarty/issues/369
311
 
312
09.8.2017
313
  - improvement repeated delimiter like {{ and }} will be treated as literal
314
    https://groups.google.com/forum/#!topic/smarty-developers/h9r82Bx4KZw
315
 
316
05.8.2017
317
  - bugfix wordwrap modifier could fail if used in nocache code.
318
    converted plugin file shared.mb_wordwrap.php into modifier.mb_wordwrap.php
319
  - cleanup of _getSmartyObj()
320
 
321
31.7.2017
322
  - Call clearstatcache() after mkdir() failure https://github.com/smarty-php/smarty/pull/379
323
 
324
30.7.2017
325
  - rewrite mkdir() bugfix to retry automatically see https://github.com/smarty-php/smarty/pull/377
326
    https://github.com/smarty-php/smarty/pull/379
327
 
328
21.7.2017
329
  - security possible PHP code injection on custom resources at display() or fetch()
330
    calls if the resource does not sanitize the template name
331
  - bugfix fix 'mkdir(): File exists' error on create directory from parallel
332
    processes https://github.com/smarty-php/smarty/pull/377
333
  - bugfix solve preg_match() hhvm parameter problem https://github.com/smarty-php/smarty/pull/372
334
 
335
27.5.2017
336
  - bugfix change compiled code for registered function and modifiers to called as callable to allow closures
337
    https://github.com/smarty-php/smarty/pull/368, https://github.com/smarty-php/smarty/issues/273
338
  - bugfix https://github.com/smarty-php/smarty/pull/368 did break the default plugin handler
339
  - improvement replace phpversion() by PHP_VERSION constant.
340
    https://github.com/smarty-php/smarty/pull/363
341
 
342
21.5.2017
343
  - performance store flag for already required shared plugin functions in static variable or
344
    Smarty's $_cache to improve performance when plugins are often called
345
    https://github.com/smarty-php/smarty/commit/51e0d5cd405d764a4ea257d1bac1fb1205f74528#commitcomment-22280086
346
  - bugfix remove special treatment of classes implementing ArrayAccess in {foreach}
347
    https://github.com/smarty-php/smarty/issues/332
348
  - bugfix remove deleted files by clear_cache() and clear_compiled_template() from
349
    ACP cache if present, add some is_file() checks to avoid possible warnings on filemtime()
350
    caused by above functions.
351
    https://github.com/smarty-php/smarty/issues/341
352
  - bugfix version 3.1.31 did fail under PHP 5.2
353
    https://github.com/smarty-php/smarty/issues/365
354
 
355
19.5.2017
356
  - change properties $accessMap and $obsoleteProperties from private to protected
357
    https://github.com/smarty-php/smarty/issues/351
358
  - new feature The named capture buffers can now be accessed also as array
359
    See NEWS_FEATURES.txt https://github.com/smarty-php/smarty/issues/366
360
  - improvement check if ini_get() and ini_set() not disabled
361
    https://github.com/smarty-php/smarty/pull/362
362
 
363
24.4.2017
364
  - fix spelling https://github.com/smarty-php/smarty/commit/e3eda8a5f5653d8abb960eb1bc47e3eca679b1b4#commitcomment-21803095
365
 
366
17.4.2017
367
  - correct generated code on empty() and isset() call, observe change PHP behaviour since PHP 5.5
368
    https://github.com/smarty-php/smarty/issues/347
369
 
370
14.4.2017
371
  - merge pull requests https://github.com/smarty-php/smarty/pull/349, https://github.com/smarty-php/smarty/pull/322 and    https://github.com/smarty-php/smarty/pull/337 to fix spelling and annotation
372
 
373
13.4.2017
374
  - bugfix array_merge() parameter should be checked https://github.com/smarty-php/smarty/issues/350
375
 
376
## 3.1.31 - (14.12.2016)
377
  23.11.2016
378
   - move template object cache into static variables
379
 
380
  19.11.2016
381
  - bugfix inheritance root child templates containing nested {block}{/block} could call sub-bock content from parent
382
    template https://github.com/smarty-php/smarty/issues/317
383
  - change version checking
384
 
385
 11.11.2016
386
  - bugfix when Smarty is using a cached template object on Smarty::fetch() or Smarty::isCached() the inheritance data
387
    must be removed https://github.com/smarty-php/smarty/issues/312
388
  - smaller speed optimization
389
 
390
 08.11.2016
391
  - add bootstrap file to load and register Smarty_Autoloader. Change composer.json to make it known to composer
392
 
393
 07.11.2016
394
  - optimization of lexer speed https://github.com/smarty-php/smarty/issues/311
395
 
396
 27.10.2016
397
  - bugfix template function definitions array has not been cached between Smarty::fetch() and Smarty::display() calls
398
    https://github.com/smarty-php/smarty/issues/301
399
 
400
 23.10.2016
401
  - improvement/bugfix when Smarty::fetch() is called on a template object the inheritance and tplFunctions property
402
    should be copied to the called template object
403
 
404
 21.10.2016
405
  - bugfix for compile locking touched timestamp of old compiled file was not restored on compilation error https://github.com/smarty-php/smarty/issues/308
406
 
407
 20.10.2016
408
  - bugfix nocache code was not removed in cache file when subtemplate did contain PHP short tags in text but no other
409
    nocache code https://github.com/smarty-php/smarty/issues/300
410
 
411
 19.10.2016
412
  - bugfix {make_nocache $var} did fail when variable value did contain '\' https://github.com/smarty-php/smarty/issues/305
413
  - bugfix {make_nocache $var} remove spaces from variable value https://github.com/smarty-php/smarty/issues/304
414
 
415
 12.10.2016
416
  - bugfix {include} with template names including variable or constants could fail after bugfix from
417
     28.09.2016 https://github.com/smarty-php/smarty/issues/302
418
 
419
 08.10.2016
420
  - optimization move runtime extension for template functions into Smarty objects
421
 
422
 29.09.2016
423
  - improvement new Smarty::$extends_recursion property to disable execution of {extends} in templates called by extends resource
424
     https://github.com/smarty-php/smarty/issues/296
425
 
426
 28.09.2016
427
  - bugfix the generated code for calling a subtemplate must pass the template resource name in single quotes https://github.com/smarty-php/smarty/issues/299
428
  - bugfix nocache hash was not removed for <?xml ?> tags in subtemplates https://github.com/smarty-php/smarty/issues/300
429
 
430
 27.09.2016
431
  - bugfix when Smarty does use an internally cached template object on Smarty::fetch() calls
432
           the template and config variables must be cleared https://github.com/smarty-php/smarty/issues/297
433
 
434
 20.09.2016
435
  - bugfix some $smarty special template variables are no longer accessed as real variable.
436
    using them on calls like {if isset($smarty.foo)} or {if empty($smarty.foo)} will fail
437
    http://www.smarty.net/forums/viewtopic.php?t=26222
438
  - temporary fix for https://github.com/smarty-php/smarty/issues/293 main reason still under investigation
439
  - improvement new tags {block_parent} {block_child} in template inheritance
440
 
441
 19.09.2016
442
  - optimization clear compiled and cached folder completely on detected version change
443
  - cleanup convert cache resource file method clear into runtime extension
444
 
445
 15.09.2016
446
  - bugfix assigning a variable in if condition by function like {if $value = array_shift($array)} the function got called twice https://github.com/smarty-php/smarty/issues/291
447
  - bugfix function plugins called with assign attribute like {foo assign='bar'} did not output returned content because
448
           because assumption was made that it was assigned to a variable https://github.com/smarty-php/smarty/issues/292
449
  - bugfix calling $smarty->isCached() on a not existing cache file with $smarty->cache_locking = true; could cause a 10 second delay http://www.smarty.net/forums/viewtopic.php?t=26282
450
  - improvement make Smarty::clearCompiledTemplate() on custom resource independent from changes of templateId computation
451
 
452
 11.09.2016
453
  - improvement {math} misleading E_USER_WARNING messages when parameter value = null https://github.com/smarty-php/smarty/issues/288
454
  - improvement move often used code snippets into methods
455
  - performance Smarty::configLoad() did load unneeded template source object
456
 
457
 09.09.2016
458
  - bugfix/optimization {foreach} did not execute the {foreachelse} when iterating empty objects https://github.com/smarty-php/smarty/pull/287
459
  - bugfix {foreach} must keep the @properties when restoring a saved $item variable as the properties might be used outside {foreach} https://github.com/smarty-php/smarty/issues/267
460
  - improvement {foreach} observe {break n} and {continue n} nesting levels when restoring saved $item and $key variables
461
 
462
 08.09.2016
463
  - bugfix implement wrapper for removed method getConfigVariable() https://github.com/smarty-php/smarty/issues/286
464
 
465
 07.09.2016
466
  - bugfix using nocache like attribute with value true like {plugin nocache=true} did not work https://github.com/smarty-php/smarty/issues/285
467
  - bugfix uppercase TRUE, FALSE and NULL did not work when security was enabled https://github.com/smarty-php/smarty/issues/282
468
  - bugfix when {foreach} was looping over an object the total property like {$item@total} did always return 1 https://github.com/smarty-php/smarty/issues/281
469
  - bugfix {capture}{/capture} did add in 3.1.30 unintended additional blank lines https://github.com/smarty-php/smarty/issues/268
470
 
471
 01.09.2016
472
  - performance require_once should be called only once for shared plugins https://github.com/smarty-php/smarty/issues/280
473
 
474
 26.08.2016
475
  - bugfix change of 23.08.2016 failed on linux when use_include_path = true
476
 
477
 23.08.2016
478
  - bugfix remove constant DS as shortcut for DIRECTORY_SEPARATOR as the user may have defined it to something else https://github.com/smarty-php/smarty/issues/277
479
 
480
 20.08-2016
481
  - bugfix {config_load ... scope="global"} shall not throw an arror but fallback to scope="smarty" https://github.com/smarty-php/smarty/issues/274
482
  - bugfix {make_nocache} failed when using composer autoloader https://github.com/smarty-php/smarty/issues/275
483
 
484
 14.08.2016
485
  - bugfix $smarty_>debugging = true; did E_NOTICE messages when {eval} tag was used https://github.com/smarty-php/smarty/issues/266
486
  - bugfix Class 'Smarty_Internal_Runtime_ValidateCompiled' not found when upgrading from some older Smarty versions with existing
487
           compiled or cached template files https://github.com/smarty-php/smarty/issues/269
488
  - optimization remove unneeded call to update acopes when {assign} scope and template scope was local (default)
489
 
490
## 3.1.30 - (07.08.2016)
491
 
492
 07.08.2016
493
  - bugfix update of 04.08.2016 was incomplete
494
 
495
 05.08.2016
496
  - bugfix compiling of templates failed when the Smarty delimiter did contain '/' https://github.com/smarty-php/smarty/issues/264
497
  - updated error checking at template and config default handler
498
 
499
 04.08.2016
500
  - improvement move template function source parameter into extension
501
 
502
 26.07.2016
503
  - optimization unneeded loading of compiled resource
504
 
505
 24.07.2016
506
  - regression this->addPluginsDir('/abs/path/to/dir') adding absolute path without trailing '/' did fail https://github.com/smarty-php/smarty/issues/260
507
 
508
 23.07.2016
509
  - bugfix setTemplateDir('/') and setTemplateDir('') did create wrong absolute filepath https://github.com/smarty-php/smarty/issues/245
510
  - optimization of filepath normalization
511
  - improvement remove double function declaration in plugin shared.escape_special_cars.php https://github.com/smarty-php/smarty/issues/229
512
 
513
 19.07.2016
514
  - bugfix multiple {include} with relative filepath within {block}{/block} could fail https://github.com/smarty-php/smarty/issues/246
515
  - bugfix {math} shell injection vulnerability patch provided by Tim Weber
516
 
517
 18.07.2016
518
  - bugfix {foreach} if key variable and item@key attribute have been used both the key variable was not updated https://github.com/smarty-php/smarty/issues/254
519
  - bugfix modifier on plugins like {plugin|modifier ... } did fail when the plugin does return an array https://github.com/smarty-php/smarty/issues/228
520
  - bugfix avoid opcache_invalidate to result in ErrorException when opcache.restrict_api is not empty https://github.com/smarty-php/smarty/pull/244
521
  - bugfix multiple {include} with relative filepath within {block}{/block} could fail https://github.com/smarty-php/smarty/issues/246
522
 
523
 14.07.2016
524
  - bugfix wrong parameter on compileAllTemplates() and compileAllConfig() https://github.com/smarty-php/smarty/issues/231
525
 
526
 13.07.2016
527
  - bugfix PHP 7 compatibility on registered compiler plugins https://github.com/smarty-php/smarty/issues/241
528
  - update testInstall() https://github.com/smarty-php/smarty/issues/248https://github.com/smarty-php/smarty/issues/248
529
  - bugfix enable debugging could fail when template objects did already exists https://github.com/smarty-php/smarty/issues/237
530
  - bugfix template function data should be merged when loading subtemplate https://github.com/smarty-php/smarty/issues/240
531
  - bugfix wrong parameter on compileAllTemplates() https://github.com/smarty-php/smarty/issues/231
532
 
533
 12.07.2016
534
  - bugfix {foreach} item variable must be created also on empty from array https://github.com/smarty-php/smarty/issues/238 and https://github.com/smarty-php/smarty/issues/239
535
  - bugfix enableSecurity() must init cache flags https://github.com/smarty-php/smarty/issues/247
536
 
537
 27.05.2016
538
  - bugfix/improvement of compileAlltemplates() follow symlinks in template folder (PHP >= 5.3.1) https://github.com/smarty-php/smarty/issues/224
539
      clear internal cache and expension handler for each template to avoid possible conflicts https://github.com/smarty-php/smarty/issues/231
540
 
541
 16.05.2016
542
  - optimization {foreach} compiler and processing
543
  - broken PHP 5.3 and 5.4 compatibility
544
 
545
 15.05.2016
546
  - optimization and cleanup of resource code
547
 
548
 10.05.2016
549
  - optimization of inheritance processing
550
 
551
 07.05.2016
552
  -bugfix Only variables should be assigned by reference https://github.com/smarty-php/smarty/issues/227
553
 
554
 02.05.2016
555
  - enhancement {block} tag names can now be variable https://github.com/smarty-php/smarty/issues/221
556
 
557
 01.05.2016
558
  - bugfix same relative filepath at {include} called from template in different folders could display wrong sub-template
559
 
560
 29.04.2016
561
  - bugfix {strip} remove space on linebreak between html tags https://github.com/smarty-php/smarty/issues/213
562
 
563
 24.04.2016
564
  - bugfix nested {include} with relative file path could fail when called in {block} ... {/block} https://github.com/smarty-php/smarty/issues/218
565
 
566
 14.04.2016
567
  - bugfix special variable {$smarty.capture.name} was not case sensitive on name https://github.com/smarty-php/smarty/issues/210
568
  - bugfix the default template handler must calculate the source uid https://github.com/smarty-php/smarty/issues/205
569
 
570
 13.04.2016
571
  - bugfix template inheritance status must be saved when calling sub-templates https://github.com/smarty-php/smarty/issues/215
572
 
573
 27.03.2016
574
  - bugfix change of 11.03.2016 cause again {capture} data could not been seen in other templates with {$smarty.capture.name} https://github.com/smarty-php/smarty/issues/153
575
 
576
 11.03.2016
577
  - optimization of capture and security handling
578
  - improvement $smarty->clearCompiledTemplate() should return on recompiled or uncompiled resources
579
 
580
 10.03.2016
581
  - optimization of resource processing
582
 
583
 09.03.2016
584
  - improvement rework of 'scope' attribute handling see see NEW_FEATURES.txt https://github.com/smarty-php/smarty/issues/194
585
    https://github.com/smarty-php/smarty/issues/186 https://github.com/smarty-php/smarty/issues/179
586
  - bugfix correct Autoloader update of 2.3.2014 https://github.com/smarty-php/smarty/issues/199
587
 
588
 04.03.2016
589
  - bugfix change from 01.03.2016 will cause $smarty->isCached(..) failure if called multiple time for same template
590
    (forum topic 25935)
591
 
592
 02.03.2016
593
  - revert autoloader optimizations because of unexplainable warning when using plugins https://github.com/smarty-php/smarty/issues/199
594
 
595
 01.03.2016
596
  - bugfix template objects must be cached on $smarty->fetch('foo.tpl) calls incase the template is fetched
597
    multiple times (forum topic 25909)
598
 
599
 25.02.2016
600
  - bugfix wrong _realpath with 4 or more parent-directories https://github.com/smarty-php/smarty/issues/190
601
  - optimization of _realpath
602
  - bugfix instanceof expression in template code must be treated as value https://github.com/smarty-php/smarty/issues/191
603
 
604
 20.02.2016
605
  - bugfix {strip} must keep space between hmtl tags. Broken by changes of 10.2.2016 https://github.com/smarty-php/smarty/issues/184
606
  - new feature/bugfix  {foreach}{section} add 'properties' attribute to force compilation of loop properties
607
    see NEW_FEATURES.txt https://github.com/smarty-php/smarty/issues/189
608
 
609
 19.02.2016
610
  - revert output buffer flushing on display, echo content again because possible problems when PHP files had
611
    characters (newline} after ?> at file end https://github.com/smarty-php/smarty/issues/187
612
 
613
 14.02.2016
614
  - new tag {make_nocache} read NEW_FEATURES.txt https://github.com/smarty-php/smarty/issues/110
615
  - optimization of sub-template processing
616
  - bugfix using extendsall as default resource and {include} inside {block} tags could produce unexpected results https://github.com/smarty-php/smarty/issues/183
617
  - optimization of tag attribute compiling
618
  - optimization make compiler tag object cache static for higher compilation speed
619
 
620
 11.02.2016
621
  - improvement added KnockoutJS comments to trimwhitespace outputfilter https://github.com/smarty-php/smarty/issues/82
622
    https://github.com/smarty-php/smarty/pull/181
623
 
624
 10.02.2016
625
  - bugfix {strip} must keep space on output creating smarty tags within html tags https://github.com/smarty-php/smarty/issues/177
626
  - bugfix wrong precedence on special if conditions like '$foo is ... by $bar' could cause wrong code https://github.com/smarty-php/smarty/issues/178
627
  - improvement because of ambiguities the inline constant support has been removed from the $foo.bar syntax https://github.com/smarty-php/smarty/issues/149
628
  - bugfix other {strip} error with output tags between hmtl https://github.com/smarty-php/smarty/issues/180
629
 
630
 09.02.2016
631
  - move some code from parser into compiler
632
  - reformat all code for unique style
633
  - update/bugfix scope attribute handling reworked. Read the newfeatures.txt file
634
 
635
 05.02.2016
636
  - improvement internal compiler changes
637
 
638
 01.02.2016
639
  - bugfix {foreach} compilation failed when $smarty->merge_compiled_includes = true and pre-filters are used.
640
 
641
 29.01.2016
642
  - bugfix implement replacement code for _tag_stack property https://github.com/smarty-php/smarty/issues/151
643
 
644
 28.01.2016
645
  - bugfix allow windows network filepath or wrapper (forum topic 25876) https://github.com/smarty-php/smarty/issues/170
646
  - bugfix if fetch('foo.tpl') is called on a template object the $parent parameter should default to the calling template object https://github.com/smarty-php/smarty/issues/152
647
 
648
 27.01.2016
649
  - revert bugfix compiling {section} did create warning
650
  - bugfix {$smarty.section.customer.loop} did throw compiler error https://github.com/smarty-php/smarty/issues/161
651
    update of yesterdays fix
652
  - bugfix string resource could inject code at {block} or inline subtemplates through PHP comments https://github.com/smarty-php/smarty/issues/157
653
  - bugfix output filters did not observe nocache code flhttps://github.com/smarty-php/smarty/issues/154g https://github.com/smarty-php/smarty/issues/160
654
  - bugfix {extends} with relative file path did not work https://github.com/smarty-php/smarty/issues/154
655
    https://github.com/smarty-php/smarty/issues/158
656
  - bugfix {capture} data could not been seen in other templates with {$smarty.capture.name} https://github.com/smarty-php/smarty/issues/153
657
 
658
 26.01.2016
659
  - improvement observe Smarty::$_CHARSET in debugging console https://github.com/smarty-php/smarty/issues/169
660
  - bugfix compiling {section} did create warning
661
  - bugfix {$smarty.section.customer.loop} did throw compiler error https://github.com/smarty-php/smarty/issues/161
662
 
663
 02.01.2016
664
  - update scope handling
665
  - optimize block plugin compiler
666
  - improvement runtime checks if registered block plugins are callable
667
 
668
 01.01.2016
669
  - remove Smarty::$resource_cache_mode property
670
 
671
 31.12.2015
672
  - optimization of {assign}, {if} and {while} compiled code
673
 
674
 30.12.2015
675
  - bugfix plugin names starting with "php" did not compile https://github.com/smarty-php/smarty/issues/147
676
 
677
 29.12.2015
678
  - bugfix Smarty::error_reporting was not observed when display() or fetch() was called on template objects https://github.com/smarty-php/smarty/issues/145
679
 
680
 28.12.2015
681
  - optimization of {foreach} code size and processing
682
 
683
 27.12.2015
684
  - improve inheritance code
685
  - update external methods
686
  - code fixes
687
  - PHPdoc updates
688
 
689
 25.12.2015
690
  - compile {block} tag code and its processing into classes
691
  - optimization replace hhvm extension by inline code
692
  - new feature If ACP is enabled force an apc_compile_file() when compiled or cached template was updated
693
 
694
 24.12.2015
695
  - new feature Compiler does now observe the template_dir setting and will create separate compiled files if required
696
  - bugfix post filter did fail on template inheritance https://github.com/smarty-php/smarty/issues/144
697
 
698
 23.12.2015
699
  - optimization move internal method decodeProperties back into template object
700
  - optimization move subtemplate processing back into template object
701
  - new feature Caching does now observe the template_dir setting and will create separate cache files if required
702
 
703
 22.12.2015
704
  - change $xxx_dir properties from private to protected in case Smarty class gets extended
705
  - code optimizations
706
 
707
 21.12.2015
708
  - bugfix a filepath starting with '/' or '\' on windows should normalize to the root dir
709
    of current working drive https://github.com/smarty-php/smarty/issues/134
710
  - optimization of filepath normalization
711
  - bugfix {strip} must remove all blanks between html tags https://github.com/smarty-php/smarty/issues/136
712
 
713
 - 3.1.29 - (21.12.2015)
714
 21.12.2015
715
  - optimization improve speed of filetime checks on extends and extendsall resource
716
 
717
 20.12.2015
718
  - bugfix failure when the default resource type was set to 'extendsall' https://github.com/smarty-php/smarty/issues/123
719
  - update compilation of Smarty special variables
720
  - bugfix add addition check for OS type on normalization of file path https://github.com/smarty-php/smarty/issues/134
721
  - bugfix the source uid of the extendsall resource must contain $template_dir settings https://github.com/smarty-php/smarty/issues/123
722
 
723
 19.12.2015
724
  - bugfix using $smarty.capture.foo in expressions could fail https://github.com/smarty-php/smarty/pull/138
725
  - bugfix broken PHP 5.2 compatibility https://github.com/smarty-php/smarty/issues/139
726
  - remove no longer used code
727
  - improvement make sure that compiled and cache templates never can contain a trailing '?>?
728
 
729
 18.12.2015
730
  - bugfix regression when modifier parameter was followed by math https://github.com/smarty-php/smarty/issues/132
731
 
732
 17.12.2015
733
  - bugfix {$smarty.capture.nameFail} did lowercase capture name https://github.com/smarty-php/smarty/issues/135
734
  - bugfix using {block append/prepend} on same block in multiple levels of inheritance templates could fail (forum topic 25827)
735
  - bugfix text content consisting of just a single '0' like in {if true}0{/if} was suppressed (forum topic 25834)
736
 
737
 16.12.2015
738
  - bugfix {foreach} did fail if from atrribute is a Generator class https://github.com/smarty-php/smarty/issues/128
739
  - bugfix direct access $smarty->template_dir = 'foo'; should call Smarty::setTemplateDir() https://github.com/smarty-php/smarty/issues/121
740
 
741
 15.12.2015
742
  - bugfix  {$smarty.cookies.foo} did return the $_COOKIE array not the 'foo' value https://github.com/smarty-php/smarty/issues/122
743
  - bugfix  a call to clearAllCache() and other should clear all internal template object caches (forum topic 25828)
744
 
745
 14.12.2015
746
  - bugfix  {$smarty.config.foo} broken in 3.1.28 https://github.com/smarty-php/smarty/issues/120
747
  - bugfix  multiple calls of {section} with same name droped E_NOTICE error https://github.com/smarty-php/smarty/issues/118
748
 
749
 - 3.1.28 - (13.12.2015)
750
 13.12.2015
751
  - bugfix {foreach} and {section} with uppercase characters in name attribute did not work (forum topic 25819)
752
  - bugfix $smarty->debugging_ctrl = 'URL' did not work (forum topic 25811)
753
  - bugfix Debug Console could display incorrect data when using subtemplates
754
 
755
 09.12.2015
756
  - bugfix Smarty did fail under PHP 7.0.0 with use_include_path = true;
757
 
758
 09.12.2015
759
  - bugfix {strip} should exclude some html tags from stripping, related to fix for https://github.com/smarty-php/smarty/issues/111
760
 
761
 08.12.2015
762
  - bugfix internal template function data got stored in wrong compiled file https://github.com/smarty-php/smarty/issues/114
763
 
764
 05.12.2015
765
  -bugfix {strip} should insert a single space https://github.com/smarty-php/smarty/issues/111
766
 
767
 25.11.2015
768
  -bugfix a left delimter like '[%' did fail on [%$var_[%$variable%]%] (forum topic 25798)
769
 
770
 02.11.2015
771
  - bugfix {include} with variable file name like {include file="foo_`$bar`.tpl"} did fail in 3.1.28-dev https://github.com/smarty-php/smarty/issues/102
772
 
773
 01.11.2015
774
  - update config file processing
775
 
776
 31.10.2015
777
  - bugfix add missing $trusted_dir property to SmartyBC class (forum topic 25751)
778
 
779
 29.10.2015
780
  - improve template scope handling
781
 
782
 24.10.2015
783
  - more optimizations of template processing
784
  - bugfix Error when using {include} within {capture} https://github.com/smarty-php/smarty/issues/100
785
 
786
 21.10.2015
787
  - move some code into runtime extensions
788
 
789
 18.10.2015
790
  - optimize filepath normalization
791
  - rework of template inheritance
792
  - speed and size optimizations
793
  - bugfix under HHVM temporary cache file must only be created when caches template was updated
794
  - fix compiled code for new {block} assign attribute
795
  - update code generated by template function call handler
796
 
797
 18.09.2015
798
  - bugfix {if $foo instanceof $bar} failed to compile if 2nd value is a variable https://github.com/smarty-php/smarty/issues/92
799
 
800
 17.09.2015
801
  - bugfix {foreach} first attribute was not correctly reset since commit 05a8fa2 of 02.08.2015 https://github.com/smarty-php/smarty/issues/90
802
 
803
 16.09.2015
804
  - update compiler by moving no longer needed properties, code optimizations and other
805
 
806
 14.09.2015
807
  - optimize autoloader
808
  - optimize subtemplate handling
809
  - update template inheritance processing
810
  - move code of {call} processing back into Smarty_Internal_Template class
811
  - improvement invalidate OPCACHE for cleared compiled and cached template files (forum topic 25557)
812
  - bugfix unintended multiple debug windows (forum topic 25699)
813
 
814
 30.08.2015
815
  - size optimization move some runtime functions into extension
816
  - optimize inline template processing
817
  - optimization merge inheritance child and parent templates into one compiled template file
818
 
819
 29.08.2015
820
  - improvement convert template inheritance into runtime processing
821
  - bugfix {$smarty.block.parent} did always reference the root parent block https://github.com/smarty-php/smarty/issues/68
822
 
823
 23.08.2015
824
  - introduce Smarty::$resource_cache_mode and cache template object of {include} inside loop
825
  - load seldom used Smarty API methods dynamically to reduce memory footprint
826
  - cache template object of {include} if same template is included several times
827
  - convert debug console processing to object
828
  - use output buffers for better performance and less memory usage
829
  - optimize nocache hash processing
830
  - remove not really needed properties
831
  - optimize rendering
832
  - move caching to Smarty::_cache
833
  - remove properties with redundant content
834
  - optimize Smarty::templateExists()
835
  - optimize use_include_path processing
836
  - relocate properties for size optimization
837
  - remove redundant code
838
  - bugfix compiling super globals like {$smarty.get.foo} did fail in the master branch https://github.com/smarty-php/smarty/issues/77
839
 
840
 06.08.2015
841
  - avoid possible circular object references caused by parser/lexer objects
842
  - rewrite compileAll... utility methods
843
  - commit several  internal improvements
844
  - bugfix Smarty failed when compile_id did contain "|"
845
 
846
 03.08.2015
847
  - rework clear cache methods
848
  - bugfix compileAllConfig() was broken since 3.1.22 because of the changes in config file processing
849
  - improve getIncludePath() to return directory if no file was given
850
 
851
 02.08.2015
852
  - optimization and code cleanup of {foreach} and {section} compiler
853
  - rework {capture} compiler
854
 
855
 01.08.2015
856
  - update DateTime object can be instance of DateTimeImmutable since PHP5.5 https://github.com/smarty-php/smarty/pull/75
857
  - improvement show resource type and start of template source instead of uid on eval: and string: resource (forum topic 25630)
858
 
859
 31.07.2015
860
  - optimize {foreach} and {section} compiler
861
 
862
 29.07.2015
863
  - optimize {section} compiler for speed and size of compiled code
864
 
865
 28.07.2015
866
  - update for PHP 7 compatibility
867
 
868
 26.07.2015
869
  - improvement impement workaround for HHVM PHP incompatibillity https://github.com/facebook/hhvm/issues/4797
870
 
871
 25.07.2015
872
  - bugfix parser did hang on text starting <?something https://github.com/smarty-php/smarty/issues/74
873
 
874
 20.07.2015
875
  - bugfix config files got recompiled on each request
876
  - improvement invalidate PHP 5.5 opcache for recompiled and cached templates  https://github.com/smarty-php/smarty/issues/72
877
 
878
 12.07.2015
879
  - optimize {extends} compilation
880
 
881
 10.07.2015
882
  - bugfix force file: resource in demo resource.extendsall.php
883
 
884
 08.07.2015
885
  - bugfix convert each word of class names to ucfirst in in compiler. (forum topic 25588)
886
 
887
 07.07.2015
888
  - improvement allow fetch() or display() called on a template object to get output from other template
889
     like $template->fetch('foo.tpl') https://github.com/smarty-php/smarty/issues/70
890
  - improvement Added $limit parameter to regex_replace modifier #71
891
  - new feature multiple indices on file: resource
892
 
893
 06.07.2015
894
  - optimize {block} compilation
895
  - optimization get rid of __get and __set in source object
896
 
897
 01.07.2015
898
  - optimize compile check handling
899
  - update {foreach} compiler
900
  - bugfix debugging console did not display string values containing \n, \r or \t correctly https://github.com/smarty-php/smarty/issues/66
901
  - optimize source resources
902
 
903
 28.06.2015
904
  - move $smarty->enableSecurity() into Smarty_Security class
905
  - optimize security isTrustedResourceDir()
906
  - move auto load filter methods into extension
907
  - move $smarty->getTemplateVars() into extension
908
  - move getStreamVariable() into extension
909
  - move $smarty->append() and $smarty->appendByRef() into extension
910
  - optimize autoloader
911
  - optimize file path normalization
912
  - bugfix PATH_SEPARATOR was replaced by mistake in autoloader
913
  - remove redundant code
914
 
915
 27.06.2015
916
  - bugfix resolve naming conflict between custom Smarty delimiter '<%' and PHP ASP tags https://github.com/smarty-php/smarty/issues/64
917
  - update $smarty->_realpath for relative path not starting with './'
918
  - update Smarty security with new realpath handling
919
  - update {include_php} with new realpath handling
920
  - move $smarty->loadPlugin() into extension
921
  - minor compiler optimizations
922
  - bugfix allow function plugins with name ending with 'close' https://github.com/smarty-php/smarty/issues/52
923
  - rework of $smarty->clearCompiledTemplate() and move it to its own extension
924
 
925
 19.06.2015
926
  - improvement allow closures as callback at $smarty->registerFilter() https://github.com/smarty-php/smarty/issues/59
927
 
928
 - 3.1.27- (18.06.2015)
929
 18.06.2015
930
  - bugfix another update on file path normalization failed on path containing something like "/.foo/" https://github.com/smarty-php/smarty/issues/56
931
 
932
 - 3.1.26- (18.06.2015)
933
 18.06.2015
934
  - bugfix file path normalization failed on path containing something like "/.foo/" https://github.com/smarty-php/smarty/issues/56
935
 
936
 17.06.2015
937
  - bugfix calling a plugin with nocache option but no other attributes like {foo nocache} caused call to undefined function https://github.com/smarty-php/smarty/issues/55
938
 
939
 - 3.1.25- (15.06.2015)
940
 15.06.2015
941
  - optimization of smarty_cachereource_keyvaluestore.php code
942
 
943
 14.06.2015
944
  - bugfix a relative sub template path could fail if template_dir path did contain /../ https://github.com/smarty-php/smarty/issues/50
945
  - optimization rework of path normalization
946
  - bugfix an output tag with variable, modifier followed by an operator like {$foo|modifier+1} did fail https://github.com/smarty-php/smarty/issues/53
947
 
948
 13.06.2015
949
  - bugfix a custom cache resource using smarty_cachereource_keyvaluestore.php did fail if php.ini mbstring.func_overload = 2 (forum topic 25568)
950
 
951
 11.06.2015
952
  - bugfix the lexer could hang on very large quoted strings (forum topic 25570)
953
 
954
 08.06.2015
955
  - bugfix using {$foo} as array index like $bar.{$foo} or in double quoted string like "some {$foo} thing" failed https://github.com/smarty-php/smarty/issues/49
956
 
957
 04.06.2015
958
  - bugfix possible error message on unset() while compiling {block} tags https://github.com/smarty-php/smarty/issues/46
959
 
960
 01.06.2015
961
  - bugfix <?xml ... ?> including template variables broken  since 3.1.22 https://github.com/smarty-php/smarty/issues/47
962
 
963
 27.05.2015
964
  - bugfix {include} with variable file name must not create by default individual cache file (since 3.1.22) https://github.com/smarty-php/smarty/issues/43
965
 
966
 24.05.2015
967
  - bugfix if condition string 'neq' broken due to a typo https://github.com/smarty-php/smarty/issues/42
968
 
969
 - 3.1.24- (23.05.2015)
970
 23.05.2015
971
  - improvement on php_handling to allow very large PHP sections, better error handling
972
  - improvement allow extreme large comment sections (forum 25538)
973
 
974
 21.05.2015
975
  - bugfix broken PHP 5.2 compatibility when compiling <?php tags https://github.com/smarty-php/smarty/issues/40
976
  - bugfix named {foreach} comparison like $smarty.foreach.foobar.index > 1 did compile into wrong code https://github.com/smarty-php/smarty/issues/41
977
 
978
 19.05.2015
979
  - bugfix compiler did overwrite existing variable value when setting the nocache attribute https://github.com/smarty-php/smarty/issues/39
980
  - bugfix output filter trimwhitespace could run into the pcre.backtrack_limit on large output (code.google issue 220)
981
  - bugfix compiler could run into the pcre.backtrack_limit on larger comment or {php} tag sections (forum 25538)
982
 
983
 18.05.2015
984
  - improvement introduce shortcuts in lexer/parser rules for most frequent terms for higher
985
    compilation speed
986
 
987
 16.05.2015
988
  - bugfix {php}{/php} did work just for single lines https://github.com/smarty-php/smarty/issues/33
989
  - improvement remove not needed ?><?php transitions from compiled code
990
  - improvement reduce number of lexer tokens on operators and if conditions
991
  - improvement higher compilation speed by modified lexer/parser generator at "smarty/smarty-lexer"
992
 
993
 13.05.2015
994
  - improvement remove not needed ?><?php transitions from compiled code
995
  - improvement of debugging:
996
      - use fresh Smarty object to display the debug console because of possible problems when the Smarty
997
        was extended or Smarty properties had been modified in the class source
998
      - display Smarty version number
999
      - Truncate lenght of Origin display and extend strin value display to 80 character
1000
  - bugfix in Smarty_Security  'nl2br' should be a trusted modifier, not PHP function (code.google issue 223)
1001
 
1002
 12.05.2015
1003
  - bugfix {$smarty.constant.TEST} did fail  on undefined constant https://github.com/smarty-php/smarty/issues/28
1004
  - bugfix access to undefined config variable like {#undef#} did fail https://github.com/smarty-php/smarty/issues/29
1005
  - bugfix in nested {foreach} saved item attributes got overwritten https://github.com/smarty-php/smarty/issues/33
1006
 
1007
 - 3.1.23 - (12.05.2015)
1008
 12.05.2015
1009
  - bugfix of smaller performance issue introduce in 3.1.22 when caching is enabled
1010
  - bugfix missig entry for smarty-temmplate-config in autoloader
1011
 
1012
 - 3.1.22 - tag was deleted because 3.1.22 did fail caused by the missing entry for smarty-temmplate-config in autoloader
1013
 10.05.2015
1014
  - bugfix custom cache resource did not observe compile_id and cache_id when $cache_locking == true
1015
  - bugfix cache lock was not handled correctly after timeout when $cache_locking == true
1016
  - improvement added constants for $debugging
1017
 
1018
 07.05.2015
1019
  - improvement of the debugging console. Read NEW_FEATURES.txt
1020
  - optimization of resource class loading
1021
 
1022
 06.05.2015
1023
  - bugfix in 3.1.22-dev cache resource must not be loaded for subtemplates
1024
  - bugfix/improvement in 3.1.22-dev cache locking did not work as expected
1025
 
1026
 05.05.2015
1027
  - optimization on cache update when main template is modified
1028
  - optimization move <?php ?> handling from parser to new compiler module
1029
 
1030
 05.05.2015
1031
  - bugfix code could be messed up when {tags} are used in multiple attributes https://github.com/smarty-php/smarty/issues/23
1032
 
1033
 04.05.2015
1034
  - bugfix Smarty_Resource::parseResourceName incompatible with Google AppEngine (https://github.com/smarty-php/smarty/issues/22)
1035
  - improvement use is_file() checks to avoid errors suppressed by @ which could still cause problems (https://github.com/smarty-php/smarty/issues/24)
1036
 
1037
 28.04.2015
1038
  - bugfix plugins of merged subtemplates not loaded in 3.1.22-dev (forum topic 25508) 2nd fix
1039
 
1040
 28.04.2015
1041
  - bugfix plugins of merged subtemplates not loaded in 3.1.22-dev (forum topic 25508)
1042
 
1043
 23.04.2015
1044
  - bugfix a nocache template variable used as parameter at {insert} was by mistake cached
1045
 
1046
 20.04.2015
1047
  - bugfix at a template function containing nocache code a parmeter could overwrite a template variable of same name
1048
 
1049
 27.03.2015
1050
  - bugfix Smarty_Security->allow_constants=false; did also disable true, false and null (change of 16.03.2015)
1051
  - improvement added a whitelist for trusted constants to security Smarty_Security::$trusted_constants (forum topic 25471)
1052
 
1053
 20.03.2015
1054
  - bugfix make sure that function properties get saved only in compiled files containing the fuction definition {forum topic 25452}
1055
  - bugfix correct update of global variable values on exit of template functions. (reported under Smarty Developers)
1056
 
1057
 16.03.2015
1058
 - bugfix  problems with {function}{/function} and {call} tags in different subtemplate cache files {forum topic 25452}
1059
 - bugfix  Smarty_Security->allow_constants=false; did not disallow direct usage of defined constants like {SMARTY_DIR} {forum topic 25457}
1060
 - bugfix  {block}{/block} tags did not work inside double quoted strings https://github.com/smarty-php/smarty/issues/18
1061
 
1062
 
1063
 15.03.2015
1064
 - bugfix  $smarty->compile_check must be restored before rendering of a just updated cache file {forum 25452}
1065
 
1066
 14.03.2015
1067
 - bugfix  {nocache}  {/nocache} tags corrupted code when used within a nocache section caused by a nocache template variable.
1068
 
1069
 - bugfix  template functions defined with {function} in an included subtemplate could not be called in nocache
1070
           mode with {call... nocache} if the subtemplate had it's own cache file {forum 25452}
1071
 
1072
 10.03.2015
1073
 - bugfix {include ... nocache} whith variable file or compile_id attribute was not executed in nocache mode.
1074
 
1075
 12.02.2015
1076
 - bugfix multiple Smarty::fetch() of same template when $smarty->merge_compiled_includes = true; could cause function already defined error
1077
 
1078
 11.02.2015
1079
 - bugfix recursive {includes} did create E_NOTICE message when $smarty->merge_compiled_includes = true; (github issue #16)
1080
 
1081
 22.01.2015
1082
 - new feature security can now control access to static methods and properties
1083
                see also NEW_FEATURES.txt
1084
 
1085
 21.01.2015
1086
 - bugfix clearCompiledTemplates(), clearAll() and clear() could try to delete whole drive at wrong path permissions because realpath() fail (forum 25397)
1087
 - bugfix 'self::' and 'parent::' was interpreted in template syntax as static class
1088
 
1089
 04.01.2015
1090
 - push last weeks changes to github
1091
 
1092
 - different optimizations
1093
 - improvement automatically create different versions of compiled templates and config files depending
1094
   on property settings.
1095
 - optimization restructure template processing by moving code into classes it better belongs to
1096
 - optimization restructure config file processing
1097
 
1098
 31.12.2014
1099
 - bugfix use function_exists('mb_get_info') for setting Smarty::$_MBSTRING.
1100
   Function mb_split could be overloaded depending on php.ini mbstring.func_overload
1101
 
1102
 
1103
 29.12.2014
1104
 - new feature security can now limit the template nesting level by property $max_template_nesting
1105
                see also NEW_FEATURES.txt (forum 25370)
1106
 
1107
 29.12.2014
1108
 - new feature security can now disable special $smarty variables listed in property $disabled_special_smarty_vars
1109
                see also NEW_FEATURES.txt (forum 25370)
1110
 
1111
 27.12.2014
1112
  - bugfix clear internal _is_file_cache when plugins_dir was modified
1113
 
1114
 13.12.2014
1115
  - improvement optimization of lexer and parser resulting in a up to 30% higher compiling speed
1116
 
1117
 11.12.2014
1118
  - bugfix resolve parser ambiguity between constant print tag {CONST} and other smarty tags after change of 09.12.2014
1119
 
1120
 09.12.2014
1121
  - bugfix variables $null, $true and $false did not work after the change of 12.11.2014 (forum 25342)
1122
  - bugfix call of template function by a variable name did not work after latest changes (forum 25342)
1123
 
1124
 23.11.2014
1125
  - bugfix a plugin with attached modifier could fail if the tag was immediately followed by another Smarty tag (since 3.1.21) (forum 25326)
1126
 
1127
 13.11.2014
1128
  - improvement move autoload code into Autoloader.php. Use Composer autoloader when possible
1129
 
1130
 12.11.2014
1131
 - new feature added support of namespaces to template code
1132
 
1133
 08.11.2014 - 10.11.2014
1134
 - bugfix subtemplate called in nocache mode could be called with wrong compile_id when it did change on one of the calling templates
1135
 - improvement add code of template functions called in nocache mode dynamically to cache file (related to bugfix of 01.11.2014)
1136
 - bugfix Debug Console did not include all data from merged compiled subtemplates
1137
 
1138
 04.11.2014
1139
 - new feature $smarty->debugging = true; => overwrite existing Debug Console window (old behaviour)
1140
               $smarty->debugging = 2; => individual Debug Console window by template name
1141
 
1142
 03.11.2014
1143
 - bugfix Debug Console did not show included subtemplates since 3.1.17 (forum 25301)
1144
 - bugfix Modifier debug_print_var did not limit recursion or prevent recursive object display at Debug Console
1145
    (ATTENTION: parameter order has changed to be able to specify maximum recursion)
1146
 - bugfix Debug consol did not include subtemplate information with $smarty->merge_compiled_includes = true
1147
 - improvement The template variables are no longer displayed as objects on the Debug Console
1148
 - improvement $smarty->createData($parent = null, $name = null) new optional name parameter for display at Debug Console
1149
 - addition of some hooks for future extension of Debug Console
1150
 
1151
 01.11.2014
1152
 - bugfix and enhancement on subtemplate {include} and template {function} tags.
1153
   * Calling a template which has a nocache section could fail if it was called from a cached and a not cached subtemplate.
1154
   * Calling the same subtemplate cached and not cached with the $smarty->merge_compiled_includes enabled could cause problems
1155
   * Many smaller related changes
1156
 
1157
 30.10.2014
1158
 - bugfix access to class constant by object like {$object::CONST} or variable class name {$class::CONST} did not work (forum 25301)
1159
 
1160
 26.10.2014
1161
 - bugfix E_NOTICE message was created during compilation when ASP tags '<%' or '%>' are in template source text
1162
 - bugfix merge_compiled_includes option failed when caching  enables and same subtemplate was included cached and not cached
1163
 
1164
 - 3.1.21 - (18.10.2014)
1165
 18.10.2014
1166
  - composer moved to github
1167
 
1168
 17.10.2014
1169
 - bugfix on $php_handling security and optimization of smarty_internal_parsetree (Thue Kristensen)
1170
 
1171
 16.10.2014
1172
 - bugfix composer.json update
1173
 
1174
 15.10.2014
1175
 - bugfix calling a new created cache file with fetch() and Smarty::CACHING_LIFETIME_SAVED multiple times did fail (forum 22350)
1176
 
1177
 14.10.2014
1178
 - bugfix any tag placed within "<script language=php>" will throw a security exception to close all thinkable holes
1179
 - bugfix classmap in root composer.json should start at "libs/..."
1180
 - improvement cache is_file(file_exists) results of loadPlugin() to avoid unnecessary calls during compilation (Issue 201}
1181
 
1182
 12.10.2014
1183
 - bugfix a comment like "<script{*foo*} language=php>" bypassed $php_handling checking (Thue Kristensen)
1184
 - bugfix change of 08.10.2014 could create E_NOTICE meassage when using "<?php" tags
1185
 - bugfix "<script language=php>" with $php_handling PHP_PASSTHRU was executed in {nocache} sections
1186
 
1187
 - 3.1.20 - (09.10.2014)
1188
 08.10.2014
1189
 - bugfix security mode of "<script language=php>" must be controlled by $php_handling property (Thue Kristensen)
1190
 
1191
 01.10.2014
1192
 - bugfix template resource of inheritance blocks could get invalid if the default resource type is not 'file'(Issue 202)
1193
 - bugfix existing child {block} tag must override parent {block} tag append / prepend setting (topic 25259)
1194
 
1195
 02.08.2014
1196
 - bugfix modifier wordwrap did output break string wrong if first word was exceeding length with cut = true (topic 25193)
1197
 
1198
 24.07.2014
1199
 - bugfix cache clear when cache folder does not exist
1200
 
1201
 16.07.2014
1202
 - enhancement remove BOM automatically from template source (topic 25161)
1203
 
1204
 04.07.2014
1205
 - bugfix the bufix of 02.06.2014 broke correct handling of child templates with same name but different template folders in extends resource (issue 194 and topic 25099)
1206
 
1207
 - 3.1.19 - (30.06.2014)
1208
 20.06.2014
1209
 - bugfix template variables could not be passed as parameter in {include} when the include was in a {nocache} section (topic 25131)
1210
 
1211
 17.06.2014
1212
 - bugfix large template text of some charsets could cause parsing errors (topic 24630)
1213
 
1214
 08.06.2014
1215
 - bugfix registered objects did not work after spelling fixes of 06.06.2014
1216
 - bugfix {block} tags within {literal} .. {/literal} got not displayed correctly (topic 25024)
1217
 - bugfix UNC WINDOWS PATH like "\\psf\path\to\dir" did not work as template directory (Issue 192)
1218
 - bugfix {html_image} security check did fail on files relative to basedir (Issue 191)
1219
 
1220
 06.06.2014
1221
 - fixed PHPUnit outputFilterTrimWhitespaceTests.php assertion of test result
1222
 - fixed spelling, PHPDoc , minor errors, code cleanup
1223
 
1224
 02.06.2014
1225
 - using multiple cwd with relative template dirs could result in identical compiled file names. (issue 194 and topic 25099)
1226
 
1227
 19.04.2014
1228
 - bugfix calling createTemplate(template, data) with empty data array caused notice of array to string conversion (Issue 189)
1229
 - bugfix clearCompiledTemplate() did not delete files on WINDOWS when a compile_id was specified
1230
 
1231
 18.04.2014
1232
 - revert bugfix of 5.4.2014 because %-e date format is not supported on all operating systems
1233
 
1234
 - 3.1.18 - (07.04.2014)
1235
 06.04.2014
1236
 - bugfix template inheritance fail when using custom resource after patch of 8.3.2014 (Issue 187)
1237
 - bugfix update of composer file (Issue 168 and 184)
1238
 
1239
 05.04.2014
1240
 - bugfix default date format leads to extra spaces when displaying dates with single digit days (Issue 165)
1241
 
1242
 26.03.2014
1243
 - bugfix Smart_Resource_Custom should not lowercase the resource name (Issue 183)
1244
 
1245
 24.03.2014
1246
 - bugfix using a {foreach} property like @iteration could fail when used in inheritance parent templates (Issue 182)
1247
 
1248
 20.03.2014
1249
 - bugfix $smarty->auto_literal and mbsting.func_overload 2, 6 or 7 did fail (forum topic 24899)
1250
 
1251
 18.03.2014
1252
 - revert change of 17.03.2014
1253
 
1254
17.03.2014
1255
 - bugfix $smarty->auto_literal and mbsting.func_overload 2, 6 or 7 did fail (forum topic 24899)
1256
 
1257
 15.03.2014
1258
 - bugfix Smarty_CacheResource_Keyvaluestore did use different keys on read/writes and clearCache() calls (Issue 169)
1259
 
1260
 13.03.2014
1261
 - bugfix clearXxx() change of 27.1.2014 did not work when specifing cache_id or compile_id  (forum topic 24868 and 24867)
1262
 
1263
 - 3.1.17 -
1264
 08.03.2014
1265
 - bugfix relative file path {include} within {block} of child templates did throw exception on first call (Issue 177)
1266
 
1267
 17.02.2014
1268
 - bugfix Smarty failed when executing PHP on HHVM (Hip Hop 2.4) because uniqid('',true) does return string with ',' (forum topic 20343)
1269
 
1270
 16.02.2014
1271
 - bugfix a '//' or '\\' in template_dir path could produce wrong path on relative filepath in {include} (Issue 175)
1272
 
1273
 05.02.2014
1274
 - bugfix shared.literal_compiler_param.php did throw an exception when literal did contain a '-' (smarty-developers group)
1275
 
1276
 27.01.2014
1277
 - bugfix $smarty->debugging = true; did show the variable of the $smarty object not the variables used in display() call (forum topic 24764)
1278
 - bugfix clearCompiledTemplate(), clearAll() and clear() should use realpath to avoid possible exception from RecursiveDirectoryIterator (Issue 171)
1279
 
1280
 26.01.2014
1281
 - bugfix  undo block nesting checks for {nocache} for reasons like forum topic 23280 (forum topic 24762)
1282
 
1283
 18.01.2014
1284
 - bugfix the compiler did fail when using template inheritance and recursive {include} (smarty-developers group)
1285
 
1286
 11.01.2014
1287
 - bugfix "* }" (spaces before right delimiter) was interpreted by mistake as comment end tag (Issue 170)
1288
 - internals  content cache should be clear when updating cache file
1289
 
1290
 08.01.2014
1291
 - bugfix Smarty_CacheResource_Custom did not handle template resource type specifications on clearCache() calls (Issue 169)
1292
 - bugfix SmartyBC.class.php should use require_once to load Smarty.class.php (forum topic 24683)
1293
 
1294
 - 3.1.16 -
1295
 15.12.2013
1296
 - bugfix {include} with {block} tag handling (forum topic 24599, 24594, 24682) (Issue 161)
1297
   Read 3.1.16_RELEASE_NOTES for more details
1298
 - enhancement additional debug output at $smarty->_parserdebug = true;
1299
 
1300
 07.11.2013
1301
 - bugfix too restrictive handling of {include} within {block} tags. 3.1.15 did throw errors where 3.1.14 did not (forum topic 24599)
1302
 - bugfix compiler could fail if PHP mbstring.func_overload is enabled  (Issue 164)
1303
 
1304
 28.10.2013
1305
 - bugfix variable resource name at custom resource plugin did not work within {block} tags (Issue 163)
1306
 - bugfix notice "Trying to get property of non-object" removed (Issue 163)
1307
 - bugfix correction of modifier capitalize fix from 3.10.2013  (issue 159)
1308
 - bugfix multiple {block}s with same name in parent did not work (forum topic 24631)
1309
 
1310
 20.10.2013
1311
 - bugfix a variable file name at {extends} tag did fail (forum topic 24618)
1312
 
1313
 14.10.2013
1314
 - bugfix yesterdays fix could result in an undefined variable
1315
 
1316
 13.10.2013
1317
 - bugfix variable names on {include} in template inheritance did unextepted error message (forum topic 24594) (Issue 161)
1318
.- bugfix relative includes with same name like {include './foo.tpl'} from different folder failed (forum topic 24590)(Issue 161)
1319
 
1320
 04.10.2013
1321
 - bugfix variable file names at {extends} had been disbabled by mistake with the rewrite of
1322
   template inheritance of 24.08.2013   (forum topic 24585)
1323
 
1324
03.10.2013
1325
 - bugfix loops using modifier capitalize did eat up memory (issue 159)
1326
 
1327
 - Smarty 3.1.15 -
1328
01.10.2013
1329
 - use current delimiters in compiler error messages (issue 157)
1330
 - improvement on performance when using error handler and multiple template folders (issue 152)
1331
 
1332
17.09.2013
1333
 - improvement added patch for additional SmartyCompilerException properties for better access to source information (forum topic 24559)
1334
 
1335
16.09.2013
1336
 - bugfix recompiled templates did not show on first request with zend opcache cache (forum topic 24320)
1337
 
1338
13.09.2013
1339
 - bugfix html_select_time defaulting error for the Meridian dropdown (forum topic 24549)
1340
 
1341
09.09.2012
1342
- bugfix incorrect compiled code with array(object,method) callback at registered Variable Filter (forum topic 24542)
1343
 
1344
27.08.2013
1345
- bugfix delimiter followed by linebreak did not work as auto literal after update from 24.08.2013 (forum topic 24518)
1346
 
1347
24.08.2013
1348
- bugfix and enhancement
1349
  Because several recent problems with template inheritance the {block} tag compiler has been rewriten
1350
   - Error messages shown now the correct child template file and line number
1351
   - The compiler could fail on some larger UTF-8 text block (forum topic 24455)
1352
   - The {strip} tag can now be placed outside {block} tags in child templates (forum topic 24289)
1353
- change SmartyException::$escape  is now false by default
1354
- change PHP traceback has been remove for SmartyException and SmartyCompilerException
1355
 
1356
14.08.2013
1357
- bugfix compiled filepath of config file did not observe different config_dir (forum topic 24493)
1358
 
1359
13.08.2013
1360
- bugfix the internal resource cache did not observe config_dir changes (forum topic 24493)
1361
 
1362
12.08.2013
1363
- bugfix internal $tmpx variables must be unique over all inheritance templates (Issue 149)
1364
 
1365
10.08.2013
1366
- bugfix a newline was eaten when a <?xml ... ?> was passed by a Smarty variable and caching was enabled (forum topic 24482)
1367
 
1368
29.07.2013
1369
- bugfix headers already send warning thrown when using 'SMARTY_DEBUG=on' from URL (Issue 148)
1370
 
1371
27.07.2013
1372
- enhancement allow access to properties of registered opjects for Smarty2 BC (forum topic 24344)
1373
 
1374
26.07.2013
1375
- bugfix template inheritance nesting problem (forum topic 24387)
1376
 
1377
15.7.2013
1378
- update code generated by PSR-2 standards fixer which introduced PHP 5.4 incompatibilities of 14.7.2013
1379
 
1380
14.7.2013
1381
- bugfix increase of internal maximum parser stacksize to allow more complex tag code {forum topic 24426}
1382
- update for PHP 5.4 compatibility
1383
- reformat source to PSR-2 standard
1384
 
1385
12.7.2013
1386
- bugfix Do not remove '//' from file path at normalization (Issue 142)
1387
 
1388
2.7.2013
1389
- bugfix trimwhitespace would replace captured items in wrong order (forum topic 24387)
1390
 
1391
## Smarty-3.1.14 -
1392
27.06.2013
1393
- bugfix removed PHP 5.5 deprecated preg_replace /e option in modifier capitalize (forum topic 24389)
1394
 
1395
17.06.2013
1396
- fixed spelling in sources and documentation (from smarty-developers forum Veres Lajos)
1397
- enhancement added constant SMARTY::CLEAR_EXPIRED for the change of 26.05.2013 (forum topic 24310)
1398
- bugfix added smarty_security.php to composer.json (Issue 135)
1399
 
1400
26.05.2013
1401
- enhancement an expire_time of -1 in clearCache() and clearAllCache() will delete outdated cache files
1402
  by their individual cache_lifetime used at creation (forum topic 24310)
1403
 
1404
21.05.2013
1405
- bugfix modifier strip_tags:true was compiled into wrong code (Forum Topic 24287)
1406
- bugfix /n after ?> in Smarty.class.php did start output buffering (Issue 138)
1407
 
1408
25.04.2013
1409
- bugfix escape and wordrap modifier could be compiled into wrong code when used in {nocache}{/nocache}
1410
  section but caching is disabled  (Forum Topic 24260)
1411
 
1412
05.04.2013
1413
- bugfix post filter must not run when compiling inheritance child blocks (Forum Topic 24094)
1414
- bugfix after the fix for Issue #130 compiler exceptions got double escaped (Forum Topic 24199)
1415
 
1416
28.02.2013
1417
- bugfix nocache blocks could be lost when using CACHING_LIFETIME_SAVED (Issue #133)
1418
- bugfix Compile ID gets nulled when compiling child blocks (Issue #134)
1419
 
1420
 
1421
24.01.2013
1422
- bugfix wrong tag type in smarty_internal_templatecompilerbase.php could cause wrong plugin search order (Forum Topic 24028)
1423
 
1424
## Smarty-3.1.13 -
1425
13.01.2013
1426
- enhancement allow to disable exception message escaping by SmartyException::$escape = false;  (Issue #130)
1427
 
1428
09.01.2013
1429
- bugfix compilation did fail when a prefilter did modify an {extends} tag c
1430
- bugfix template inheritance could fail if nested {block} tags in childs did contain {$smarty.block.child} (Issue #127)
1431
- bugfix template inheritance could fail if {block} tags in childs did have similar name as used plugins (Issue #128)
1432
- added abstract method declaration doCompile() in Smarty_Internal_TemplateCompilerBase (Forum Topic 23969)
1433
 
1434
06.01.2013
1435
- Allow '://' URL syntax in template names of stream resources  (Issue #129)
1436
 
1437
27.11.2012
1438
- bugfix wrong variable usage in smarty_internal_utility.php (Issue #125)
1439
 
1440
26.11.2012
1441
- bugfix global variable assigned within template function are not seen after template function exit (Forum Topic 23800)
1442
 
1443
24.11.2012
1444
- made SmartyBC loadable via composer (Issue #124)
1445
 
1446
20.11.2012
1447
- bugfix assignGlobal() called from plugins did not work (Forum Topic 23771)
1448
 
1449
13.11.2012
1450
- adding attribute "strict" to html_options, html_checkboxes, html_radios to only print disabled/readonly attributes if their values are true or "disabled"/"readonly" (Issue #120)
1451
 
1452
01.11.2012
1453
- bugfix muteExcpetedErrors() would screw up for non-readable paths (Issue #118)
1454
 
1455
## Smarty-3.1.12  -
1456
14.09.2012
1457
- bugfix template inheritance failed to compile with delimiters {/ and /} (Forum Topic 23008)
1458
 
1459
11.09.2012
1460
- bugfix escape Smarty exception messages to avoid possible script execution
1461
 
1462
10.09.2012
1463
- bugfix tag option flags and shorttag attributes did not work when rdel started with '=' (Forum Topic 22979)
1464
 
1465
31.08.2012
1466
- bugfix resolving relative paths broke in some circumstances (Issue #114)
1467
 
1468
22.08.2012
1469
- bugfix test MBString availability through mb_split, as it could've been compiled without regex support (--enable-mbregex).
1470
  Either we get MBstring's full package, or we pretend it's not there at all.
1471
 
1472
21.08.2012
1473
- bugfix $auto_literal = false did not work with { block} tags in child templates
1474
  (problem was reintroduced after fix in 3.1.7)(Forum Topic 20581)
1475
 
1476
17.08.2012
1477
- bugfix compiled code of nocache sections could contain wrong escaping (Forum Topic 22810)
1478
 
1479
15.08.2012
1480
- bugfix template inheritance did produce wrong code if subtemplates with {block} was
1481
  included several times (from smarty-developers forum)
1482
 
1483
14.08.2012
1484
- bugfix PHP5.2 compatibility compromised by SplFileInfo::getBasename() (Issue 110)
1485
 
1486
01.08.2012
1487
- bugfix avoid PHP error on $smarty->configLoad(...) with invalid section specification (Forum Topic 22608)
1488
 
1489
30.07.2012
1490
-bugfix {assign} in a nocache section should not overwrite existing variable values
1491
   during compilation (issue 109)
1492
 
1493
28.07.2012
1494
- bugfix array access of config variables did not work (Forum Topic 22527)
1495
 
1496
19.07.2012
1497
- bugfix the default plugin handler did create wrong compiled code for static class methods
1498
  from external script files (issue 108)
1499
 
1500
## Smarty-3.1.11 -
1501
30.06.2012
1502
- bugfix {block.. hide} did not work as nested child (Forum Topic 22216)
1503
 
1504
25.06.2012
1505
- bugfix the default plugin handler did not allow static class methods for modifier (issue 85)
1506
 
1507
24.06.2012
1508
- bugfix escape modifier support for PHP < 5.2.3 (Forum Topic 21176)
1509
 
1510
11.06.2012
1511
- bugfix the patch for Topic 21856 did break tabs between tag attributes (Forum Topic 22124)
1512
 
1513
## Smarty-3.1.10  -
1514
09.06.2012
1515
- bugfix the compiler did ignore registered compiler plugins for closing tags (Forum Topic 22094)
1516
- bugfix the patch for Topic 21856 did break multiline tags (Forum Topic 22124)
1517
 
1518
## Smarty-3.1.9 -
1519
07.06.2012
1520
- bugfix fetch() and display() with relative paths (Issue 104)
1521
- bugfix treat "0000-00-00" as 0 in modifier.date_format (Issue 103)
1522
 
1523
24.05.2012
1524
- bugfix Smarty_Internal_Write_File::writeFile() could cause race-conditions on linux systems (Issue 101)
1525
- bugfix attribute parameter names of plugins may now contain also "-"  and ":"  (Forum Topic 21856)
1526
- bugfix add compile_id to cache key of of source (Issue 97)
1527
 
1528
22.05.2012
1529
- bugfix recursive {include} within {section} did fail (Smarty developer group)
1530
 
1531
12.05.2012
1532
- bugfix {html_options} did not properly escape values (Issue 98)
1533
 
1534
03.05.2012
1535
- bugfix make HTTP protocall version variable (issue 96)
1536
 
1537
02.05.2012
1538
- bugfix  {nocache}{block}{plugin}... did produce wrong compiled code when caching is disabled (Forum Topic 21572, issue 95)
1539
 
1540
12.04.2012
1541
- bugfix Smarty did eat the linebreak after the <?xml...?> closing tag (Issue 93)
1542
- bugfix concurrent cache updates could create a warning (Forum Topic 21403)
1543
 
1544
08.04.2012
1545
- bugfix "\\" was not escaped correctly when generating nocache code (Forum Topic 21364)
1546
 
1547
30.03.2012
1548
- bugfix template inheritance did  not throw exception when a parent template was deleted (issue 90)
1549
 
1550
27.03.2012
1551
- bugfix prefilter did run multiple times on inline subtemplates compiled into several main templates (Forum Topic 21325)
1552
- bugfix implement Smarty2's behaviour of variables assigned by reference in SmartyBC. {assign} will affect all references.
1553
  (issue 88)
1554
 
1555
21.03.2012
1556
- bugfix compileAllTemplates() and compileAllConfig() did not return the number of compiled files (Forum Topic 21286)
1557
 
1558
13.03.2012
1559
- correction of yesterdays bugfix (Forum Topic 21175 and 21182)
1560
 
1561
12.03.2012
1562
- bugfix a double quoted string of "$foo" did not compile into PHP "$foo" (Forum Topic 21175)
1563
- bugfix template inheritance did set $merge_compiled_includes globally true
1564
 
1565
03.03.2012
1566
- optimization of compiling speed when same modifier was used several times
1567
 
1568
02.03.2012
1569
- enhancement the default plugin handler can now also resolve undefined modifier (Smarty::PLUGIN_MODIFIER)
1570
  (Issue 85)
1571
 
1572
## Smarty-3.1.8  -
1573
19.02.2012
1574
- bugfix {include} could result in a fatal error if used in appended or prepended nested {block} tags
1575
  (reported by mh and Issue 83)
1576
- enhancement added Smarty special variable $smarty.template_object to return the current template object (Forum Topic 20289)
1577
 
1578
 
1579
07.02.2012
1580
- bugfix increase entropy of internal function names in compiled and cached template files (Forum Topic 20996)
1581
- enhancement cacheable parameter added to default plugin handler, same functionality as in registerPlugin (request by calguy1000)
1582
 
1583
06.02.2012
1584
- improvement stream_resolve_include_path() added to Smarty_Internal_Get_Include_Path (Forum Topic 20980)
1585
- bugfix fetch('extends:foo.tpl') always yielded $source->exists == true (Forum Topic 20980)
1586
- added modifier unescape:"url", fix (Forum Topic 20980)
1587
- improvement replaced some calls of preg_replace with str_replace (Issue 73)
1588
 
1589
30.01.2012
1590
- bugfix Smarty_Security internal $_resource_dir cache wasn't properly propagated
1591
 
1592
27.01.2012
1593
- bugfix Smarty did not a template name of "0" (Forum Topic 20895)
1594
 
1595
20.01.2012
1596
- bugfix typo in Smarty_Internal_Get_IncludePath did cause runtime overhead (Issue 74)
1597
- improvment remove unneeded assigments (Issue 75 and 76)
1598
- fixed typo in template parser
1599
- bugfix output filter must not run before writing cache when template does contain nocache code (Issue 71)
1600
 
1601
02.01.2012
1602
- bugfix {block foo nocache} did not load plugins within child {block} in nocache mode (Forum Topic 20753)
1603
 
1604
29.12.2011
1605
- bugfix enable more entropy in Smarty_Internal_Write_File for "more uniqueness" and Cygwin compatibility (Forum Topic 20724)
1606
- bugfix embedded quotes in single quoted strings did not compile correctly in {nocache} sections (Forum Topic 20730)
1607
 
1608
28.12.2011
1609
- bugfix Smarty's internal header code must be excluded from postfilters (issue 71)
1610
 
1611
22.12.2011
1612
- bugfix the new lexer of 17.12.2011 did fail if mbstring.func_overload != 0 (issue 70) (Forum Topic 20680)
1613
- bugfix template inheritace did fail if mbstring.func_overload != 0 (issue 70) (Forum Topic 20680)
1614
 
1615
20.12.2011
1616
- bugfix template inheritance: {$smarty.block.child} in nested child {block} tags did not return
1617
  content after {$smarty.block.child} (Forum Topic 20564)
1618
 
1619
## Smarty-3.1.7 -
1620
18.12.2011
1621
- bugfix strings ending with " in multiline strings of config files failed to compile (issue #67)
1622
- added chaining to Smarty_Internal_Templatebase
1623
- changed unloadFilter() to not return a boolean in favor of chaining and API conformity
1624
- bugfix unregisterObject() raised notice when object to unregister did not exist
1625
- changed internals to use Smarty::$_MBSTRING ($_CHARSET, $_DATE_FORMAT) for better unit testing
1626
- added Smarty::$_UTF8_MODIFIER for proper PCRE charset handling (Forum Topic 20452)
1627
- added Smarty_Security::isTrustedUri() and Smarty_Security::$trusted_uri to validate
1628
  remote resource calls through {fetch} and {html_image} (Forum Topic 20627)
1629
 
1630
17.12.2011
1631
- improvement of compiling speed by new handling of plain text blocks in the lexer/parser (issue #68)
1632
 
1633
16.12.2011
1634
- bugfix the source exits flag and timestamp was not setup when template was in php include path (issue #69)
1635
 
1636
9.12.2011
1637
- bugfix {capture} tags around recursive {include} calls did throw exception (Forum Topic 20549)
1638
- bugfix $auto_literal = false did not work with { block} tags in child templates (Forum Topic 20581)
1639
- bugfix template inheritance: do not include code of {include} in overloaded {block} into compiled
1640
  parent template (Issue #66}
1641
- bugfix template inheritance: {$smarty.block.child} in nested child {block} tags did not return expected
1642
  result (Forum Topic 20564)
1643
 
1644
## Smarty-3.1.6  -
1645
30.11.2011
1646
- bugfix is_cache() for individual cached subtemplates with $smarty->caching = CACHING_OFF did produce
1647
  an exception (Forum Topic 20531)
1648
 
1649
29.11.2011
1650
- bugfix added exception if the default plugin handler did return a not static callback (Forum Topic 20512)
1651
 
1652
25.11.2011
1653
- bugfix {html_select_date} and {html_slecet_time} did not default to current time if "time" was not specified
1654
  since r4432 (issue 60)
1655
 
1656
24.11.2011
1657
- bugfix a subtemplate later used as main template did use old variable values
1658
 
1659
21.11.2011
1660
- bugfix cache file could include unneeded modifier plugins under certain condition
1661
 
1662
18.11.2011
1663
- bugfix declare all directory properties private to map direct access to getter/setter also on extended Smarty class
1664
 
1665
16.11.2011
1666
- bugfix Smarty_Resource::load() did not always return a proper resource handler (Forum Topic 20414)
1667
- added escape argument to html_checkboxes and html_radios (Forum Topic 20425)
1668
 
1669
## Smarty-3.1.5  -
1670
14.11.2011
1671
- bugfix allow space between function name and open bracket (forum topic 20375)
1672
 
1673
09.11.2011
1674
- bugfix different behaviour of uniqid() on cygwin. See https://bugs.php.net/bug.php?id=34908
1675
  (forum topic 20343)
1676
 
1677
01.11.2011
1678
- bugfix {if} and {while} tags without condition did not throw a SmartyCompilerException (Issue #57)
1679
- bugfix multiline strings in config files could fail on longer strings (reopened Issue #55)
1680
 
1681
22.10.2011
1682
- bugfix smarty_mb_from_unicode() would not decode unicode-points properly
1683
- bugfix use catch Exception instead UnexpectedValueException in
1684
  clearCompiledTemplate to be PHP 5.2 compatible
1685
 
1686
21.10.2011
1687
- bugfix apostrophe in plugins_dir path name failed (forum topic 20199)
1688
- improvement sha1() for array keys longer than 150 characters
1689
- add Smarty::$allow_ambiguous_resources to activate unique resource handling (Forum Topic 20128)
1690
 
1691
20.10.2011
1692
- @silenced unlink() in Smarty_Internal_Write_File since debuggers go haywire without it.
1693
- bugfix Smarty::clearCompiledTemplate() threw an Exception if $cache_id was not present in $compile_dir when $use_sub_dirs = true.
1694
- bugfix {html_select_date} and {html_select_time} did not properly handle empty time arguments (Forum Topic 20190)
1695
- improvement removed unnecessary sha1()
1696
 
1697
19.10.2011
1698
- revert PHP4 constructor message
1699
- fixed PHP4 constructor message
1700
 
1701
## Smarty-3.1.4 -
1702
19.10.2011
1703
- added exception when using PHP4 style constructor
1704
 
1705
16.10.2011
1706
- bugfix testInstall() did not propery check cache_dir and compile_dir
1707
 
1708
15.10.2011
1709
- bugfix Smarty_Resource and Smarty_CacheResource runtime caching (Forum Post 75264)
1710
 
1711
14.10.2011
1712
- bugfix unique_resource did not properly apply to compiled resources (Forum Topic 20128)
1713
- add locking to custom resources (Forum Post 75252)
1714
- add Smarty_Internal_Template::clearCache() to accompany isCached() fetch() etc.
1715
 
1716
13.10.2011
1717
- add caching for config files in Smarty_Resource
1718
- bugfix disable of caching after isCached() call did not work (Forum Topic 20131)
1719
- add concept unique_resource to combat potentially ambiguous template_resource values when custom resource handlers are used (Forum Topic 20128)
1720
- bugfix multiline strings in config files could fail on longer strings (Issue #55)
1721
 
1722
11.10.2011
1723
- add runtime checks for not matching {capture}/{/capture} calls (Forum Topic 20120)
1724
 
1725
10.10.2011
1726
- bugfix variable name typo in {html_options} and {html_checkboxes} (Issue #54)
1727
- bugfix <?xml> tag did create wrong output when caching enabled and the tag was in included subtemplate
1728
- bugfix Smarty_CacheResource_mysql example was missing strtotime() calls
1729
 
1730
## Smarty-3.1.3  -
1731
07.10.2011
1732
- improvement removed html comments from {mailto} (Forum Topic 20092)
1733
- bugfix testInstall() would not show path to internal plugins_dir (Forum Post 74627)
1734
- improvement testInstall() now showing resolved paths and checking the include_path if necessary
1735
- bugfix html_options plugin did not handle object values properly (Issue #49, Forum Topic 20049)
1736
- improvement html_checkboxes and html_radios to accept null- and object values, and label_ids attribute
1737
- improvement removed some unnecessary count()s
1738
- bugfix parent pointer was not set when fetch() for other template was called on template object
1739
 
1740
06.10.2011
1741
- bugfix switch lexer internals depending on mbstring.func_overload
1742
- bugfix start_year and end_year of {html_select_date} did not use current year as offset base (Issue #53)
1743
 
1744
05.10.2011
1745
- bugfix of problem introduced with r4342 by replacing strlen() with isset()
1746
- add environment configuration issue with mbstring.func_overload Smarty cannot compensate for (Issue #45)
1747
- bugfix nofilter tag option did not disable default modifier
1748
- bugfix html_options plugin did not handle null- and object values properly (Issue #49, Forum Topic 20049)
1749
 
1750
04.10.2011
1751
- bugfix assign() in plugins called in subtemplates did change value also in parent template
1752
- bugfix of problem introduced with r4342 on math plugin
1753
- bugfix output filter should not run on individually cached subtemplates
1754
- add unloadFilter() method
1755
- bugfix has_nocache_code flag was not reset before compilation
1756
 
1757
## Smarty-3.1.2  -
1758
03.10.2011
1759
- improvement add internal $joined_template_dir property instead computing it on the fly several times
1760
 
1761
01.10.2011
1762
- improvement replaced most in_array() calls by more efficient isset() on array_flip()ed haystacks
1763
- improvement replaced some strlen($foo) > 3 calls by isset($foo[3])
1764
- improvement Smarty_Internal_Utility::clearCompiledTemplate() removed redundant strlen()s
1765
 
1766
29.09.2011
1767
- improvement of Smarty_Internal_Config::loadConfigVars() dropped the in_array for index look up
1768
 
1769
28.09.2011
1770
- bugfix on template functions called nocache calling other template functions
1771
 
1772
27.09.2011
1773
- bugfix possible warning "attempt to modify property of non-object" in {section} (issue #34)
1774
- added chaining to Smarty_Internal_Data so $smarty->assign('a',1)->assign('b',2); is possible now
1775
- bugfix remove race condition when a custom resource did change timestamp during compilation
1776
- bugfix variable property did not work on objects variable in template
1777
- bugfix smarty_make_timestamp() failed to process DateTime objects properly
1778
- bugfix wrong resource could be used on compile check of custom resource
1779
 
1780
26.09.2011
1781
- bugfix repeated calls to same subtemplate did not make use of cached template object
1782
 
1783
24.09.2011
1784
- removed internal muteExpectedErrors() calls in favor of having the implementor call this once from his application
1785
- optimized muteExpectedErrors() to pass errors to the latest registered error handler, if appliccable
1786
- added compile_dir and cache_dir to list of muted directories
1787
- improvment better error message for undefined templates at {include}
1788
 
1789
23.09.2011
1790
- remove unused properties
1791
- optimization use real function instead anonymous function for preg_replace_callback
1792
- bugfix a relative {include} in child template blocks failed
1793
- bugfix direct setting of $template_dir, $config_dir, $plugins_dir in __construct() of an
1794
  extended Smarty class created problems
1795
- bugfix error muting was not implemented for cache locking
1796
 
1797
## Smarty 3.1.1  -
1798
22.09.2011
1799
- bugfix {foreachelse} does fail if {section} was nested inside {foreach}
1800
- bugfix debug.tpl did not display correctly when it was compiled with escape_html = true
1801
 
1802
21.09.2011
1803
- bugfix look for mixed case plugin file names as in 3.0 if not found try all lowercase
1804
- added $error_muting to suppress error messages even for badly implemented error_handlers
1805
- optimized autoloader
1806
- reverted ./ and ../ handling in fetch() and display() - they're allowed again
1807
 
1808
20.09.2011
1809
- bugfix removed debug echo output while compiling template inheritance
1810
- bugfix relative paths in $template_dir broke relative path resolving in {include "../foo.tpl"}
1811
- bugfix {include} did not work inside nested {block} tags
1812
- bugfix {assign} with scope root and global did not work in all cases
1813
 
1814
19.09.2011
1815
- bugfix regression in Smarty_CacheReource_KeyValueStore introduced by r4261
1816
- bugfix output filter shall not run on included subtemplates
1817
 
1818
18.09.2011
1819
- bugfix template caching did not care about file.tpl in different template_dir
1820
- bugfix {include $file} was broken when merge_compiled_incluges = true
1821
- bugfix {include} was broken when merge_compiled_incluges = true and same indluded template
1822
  was used in different main templates in one compilation run
1823
- bugfix for Smarty2 style compiler plugins on unnamed attribute passing like {tag $foo $bar}
1824
- bugfix debug.tpl did not display correctly when it was compiled with escape_html = true
1825
 
1826
17.09.2011
1827
- bugfix lock_id for file resource would create invalid filepath
1828
- bugfix resource caching did not care about file.tpl in different template_dir
1829
 
1830
## Smarty 3.1.0  -
1831
15/09/2011
1832
- optimization of {foreach}; call internal _count() method only when "total" or "last" {foreach} properties are used
1833
 
1834
11/09/2011
1835
- added  unregisterObject() method
1836
 
1837
06/09/2011
1838
- bugfix  isset() did not work in templates on config variables
1839
 
1840
03/09/2011
1841
- bugfix createTemplate() must default to cache_id and compile_id of Smarty object
1842
- bugfix Smarty_CacheResource_KeyValueStore must include $source->uid in cache filepath to keep templates with same
1843
  name but different folders separated
1844
- added cacheresource.apc.php example in demo folder
1845
 
1846
02/09/2011
1847
- bugfix cache lock file must use absolute filepath
1848
 
1849
01/09/2011
1850
- update of cache locking
1851
 
1852
30/08/2011
1853
- added locking mechanism to CacheResource API (implemented with File and KeyValueStores)
1854
 
1855
28/08/2011
1856
- bugfix clearCompileTemplate() did not work for specific template subfolder or resource
1857
 
1858
27/08/2011
1859
- bugfix {$foo|bar+1} did create syntax error
1860
 
1861
26/08/2011
1862
- bugfix when generating nocache code which contains double \
1863
- bugfix handle race condition if cache file was deleted between filemtime and include
1864
 
1865
17/08/2011
1866
- bugfix CacheResource_Custom bad internal fetch() call
1867
 
1868
15/08/2011
1869
- bugfix CacheResource would load content twice for KeyValueStore and Custom handlers
1870
 
1871
06/08/2011
1872
- bugfix {include} with scope attribute could execute in wrong scope
1873
- optimization of compile_check processing
1874
 
1875
03/08/2011
1876
- allow comment tags to comment {block} tags out in child templates
1877
 
1878
26/07/2011
1879
- bugfix experimental getTags() method did not work
1880
 
1881
24/07/2011
1882
- sure opened output buffers are closed on exception
1883
- bugfix {foreach} did not work on IteratorAggregate
1884
 
1885
22/07/2011
1886
- clear internal caches on clearAllCache(), clearCache(), clearCompiledTemplate()
1887
 
1888
21/07/2011
1889
- bugfix value changes of variable values assigned to Smarty object could not be seen on repeated $smarty->fetch() calls
1890
 
1891
17/07/2011
1892
- bugfix {$smarty.block.child} did drop a notice at undefined child
1893
 
1894
15/07/2011
1895
- bugfix individual cache_lifetime of {include} did not work correctly inside {block} tags
1896
- added caches for Smarty_Internal_TemplateSource and Smarty_Internal_TemplateCompiled to reduce I/O for multiple cache_id rendering
1897
 
1898
14/07/2011
1899
- made Smarty::loadPlugin() respect the include_path if required
1900
 
1901
13/07/2011
1902
- optimized internal file write functionality
1903
- bugfix PHP did eat line break on nocache sections
1904
- fixed typo of Smarty_Security properties $allowed_modifiers and $disabled_modifiers
1905
 
1906
06/07/2011
1907
- bugfix variable modifier must run befor gereral filtering/escaping
1908
 
1909
04/07/2011
1910
- bugfix use (?P<name>) syntax at preg_match as some pcre libraries failed on (?<name>)
1911
- some performance improvement when using generic getter/setter on template objects
1912
 
1913
30/06/2011
1914
- bugfix generic getter/setter of Smarty properties used on template objects did throw exception
1915
- removed is_dir and is_readable checks from directory setters for better performance
1916
 
1917
28/06/2011
1918
- added back support of php template resource as undocumented feature
1919
- bugfix automatic recompilation on version change could drop undefined index notice on old 3.0 cache and compiled files
1920
- update of README_3_1_DEV.txt and moved into the distribution folder
1921
- improvement show first characters of eval and string templates instead sha1 Uid in debug window
1922
 
1923
## Smarty 3.1-RC1 -
1924
25/06/2011
1925
- revert change of 17/06/2011. $_smarty varibale removed. call loadPlugin() from inside plugin code if required
1926
- code cleanup, remove no longer used properties and methods
1927
- update of PHPdoc comments
1928
 
1929
23/06/2011
1930
- bugfix {html_select_date} would not respect current time zone
1931
 
1932
19/06/2011
1933
- added $errors argument to testInstall() functions to suppress output.
1934
- added plugin-file checks to testInstall()
1935
 
1936
18/06/2011
1937
- bugfix mixed use of same subtemplate inline and not inline in same script could cause a warning during compilation
1938
 
1939
17/06/2011
1940
- bugfix/change use $_smarty->loadPlugin() when loading nested depending plugins via loadPlugin
1941
- bugfix {include ... inline} within {block}...{/block} did fail
1942
 
1943
16/06/2011
1944
- bugfix do not overwrite '$smarty' template variable when {include ... scope=parent} is called
1945
- bugfix complete empty inline subtemplates did fail
1946
 
1947
15/06/2011
1948
- bugfix template variables where not accessable within inline subtemplates
1949
 
1950
12/06/2011
1951
- bugfix removed unneeded merging of template variable when fetching includled subtemplates
1952
 
1953
10/06/2011
1954
- made protected properties $template_dir, $plugins_dir, $cache_dir, $compile_dir, $config_dir accessible via magic methods
1955
 
1956
09/06/2011
1957
- fix smarty security_policy issue in plugins {html_image} and {fetch}
1958
 
1959
05/06/2011
1960
- update of SMARTY_VERSION
1961
- bugfix made getTags() working again
1962
 
1963
04/06/2011
1964
- allow extends resource in file attribute of {extends} tag
1965
 
1966
03/06/2011
1967
- added {setfilter} tag to set filters for variable output
1968
- added escape_html property to control autoescaping of variable output
1969
 
1970
27/05/2011
1971
- added allowed/disabled tags and modifiers in security for sandboxing
1972
 
1973
23/05/2011
1974
- added base64: and urlencode: arguments to eval and string resource types
1975
 
1976
22/05/2011
1977
- made time-attribute of {html_select_date} and {html_select_time} accept arrays as defined by attributes prefix and field_array
1978
 
1979
13/05/2011
1980
- remove setOption / getOption calls from SamrtyBC class
1981
 
1982
02/05/2011
1983
- removed experimental setOption() getOption() methods
1984
- output returned content also on opening tag calls of block plugins
1985
- rewrite of default plugin handler
1986
- compile code of variable filters for better performance
1987
 
1988
20/04/2011
1989
- allow {php} {include_php} tags and PHP_ALLOW handling only with the SmartyBC class
1990
- removed support of php template resource
1991
 
1992
20/04/2011
1993
- added extendsall resource example
1994
- optimization of template variable access
1995
- optimization of subtemplate handling {include}
1996
- optimization of template class
1997
 
1998
01/04/2011
1999
- bugfix quote handling in capitalize modifier
2000
 
2001
28/03/2011
2002
- bugfix stripslashes() requried when using PCRE e-modifier
2003
 
2004
04/03/2011
2005
- upgrade to new PHP_LexerGenerator version 0.4.0 for better performance
2006
 
2007
27/02/2011
2008
- ignore .svn folders when clearing cache and compiled files
2009
- string resources do not need a modify check
2010
 
2011
26/02/2011
2012
- replaced smarty_internal_wrapper by SmartyBC class
2013
- load utility functions as static methods instead through __call()
2014
- bugfix in extends resource when subresources are used
2015
- optimization of modify checks
2016
 
2017
25/02/2011
2018
- use $smarty->error_unassigned to control NOTICE handling on unassigned variables
2019
 
2020
21/02/2011
2021
- added new new compile_check mode COMPILECHECK_CACHEMISS
2022
- corrected new cloning behaviour of createTemplate()
2023
- do no longer store the compiler object as property in the compile_tag classes to avoid possible memory leaks
2024
  during compilation
2025
 
2026
19/02/2011
2027
- optimizations on merge_compiled_includes handling
2028
- a couple of optimizations and bugfixes related to new resource structure
2029
 
2030
17/02/2011
2031
- changed ./ and ../ behaviour
2032
 
2033
14/02/2011
2034
- added {block ... hide} option to suppress block if no child is defined
2035
 
2036
13/02/2011
2037
- update handling of recursive subtemplate calls
2038
- bugfix replace $smarty->triggerError() by exception in smarty_internal_resource_extends.php
2039
 
2040
12/02/2011
2041
- new class Smarty_Internal_TemplateBase with shared methods of Smarty and Template objects
2042
- optimizations of template processing
2043
- made register... methods permanet
2044
- code for default_plugin_handler
2045
- add automatic recompilation at version change
2046
 
2047
04/02/2011
2048
- change in Smarty_CacheResource_Custom
2049
- bugfix cache_lifetime did not compile correctly at {include} after last update
2050
- moved isCached processing into CacheResource class
2051
- bugfix new CacheResource API did not work with disabled compile_check
2052
 
2053
03/02/2011
2054
- handle template content as function to improve speed on multiple calls of same subtemplate and isCached()/display() calls
2055
- bugfixes and improvents in the new resource API
2056
- optimizations of template class code
2057
 
2058
25/01/2011
2059
- optimized function html_select_time
2060
 
2061
22/01/2011
2062
- added Smarty::$use_include_path configuration directive for Resource API
2063
 
2064
21/01/2011
2065
- optimized function html_select_date
2066
 
2067
19/01/2011
2068
- optimized outputfilter trimwhitespace
2069
 
2070
18/01/2011
2071
- bugfix Config to use Smarty_Resource to fetch sources
2072
- optimized Smarty_Security's isTrustedDir() and isTrustedPHPDir()
2073
 
2074
17/01/2011
2075
- bugfix HTTP headers for CGI SAPIs
2076
 
2077
16/01/2011
2078
- optimized internals of Smarty_Resource and Smarty_CacheResource
2079
 
2080
14/01/2011
2081
- added modifiercompiler escape to improve performance of escaping html, htmlall, url, urlpathinfo, quotes, javascript
2082
- added support to choose template_dir to load from: [index]filename.tpl
2083
 
2084
12/01/2011
2085
- added unencode modifier to revert results of encode modifier
2086
- added to_charset and from_charset modifier for character encoding
2087
 
2088
11/01/2011
2089
- added SMARTY_MBSTRING to generalize MBString detection
2090
- added argument $lc_rest to modifier.capitalize to lower-case anything but the first character of a word
2091
- changed strip modifier to consider unicode white-space, too
2092
- changed wordwrap modifier to accept UTF-8 strings
2093
- changed count_sentences modifier to consider unicode characters and treat sequences delimited by ? and ! as sentences, too
2094
- added argument $double_encode to modifier.escape (applies to html and htmlall only)
2095
- changed escape modifier to be UTF-8 compliant
2096
- changed textformat block to be UTF-8 compliant
2097
- optimized performance of mailto function
2098
- fixed spacify modifier so characters are not prepended and appended, made it unicode compatible
2099
- fixed truncate modifier to properly use mb_string if possible
2100
- removed UTF-8 frenzy from count_characters modifier
2101
- fixed count_words modifier to treat "hello-world" as a single word like str_count_words() does
2102
- removed UTF-8 frenzy from upper modifier
2103
- removed UTF-8 frenzy from lower modifier
2104
 
2105
01/01/2011
2106
- optimize smarty_modified_escape for hex, hexentity, decentity.
2107
 
2108
28/12/2010
2109
- changed $tpl_vars, $config_vars and $parent to belong to Smarty_Internal_Data
2110
- added Smarty::registerCacheResource() for dynamic cache resource object registration
2111
 
2112
27/12/2010
2113
- added Smarty_CacheResource API and refactored existing cache resources accordingly
2114
- added Smarty_CacheResource_Custom and Smarty_CacheResource_Mysql
2115
 
2116
26/12/2010
2117
- added Smarty_Resource API and refactored existing resources accordingly
2118
- added Smarty_Resource_Custom and Smarty_Resource_Mysql
2119
- bugfix Smarty::createTemplate() to return properly cloned template instances
2120
 
2121
24/12/2010
2122
- optimize smarty_function_escape_special_chars() for PHP >= 5.2.3
2123
 
2124
## SVN 3.0 trunk  -
2125
14/05/2011
2126
- bugfix error handling at stream resources
2127
 
2128
13/05/2011
2129
- bugfix condition starting with "-" did fail at {if} and {while} tags
2130
 
2131
22/04/2011
2132
- bugfix allow only fixed string as file attribute at {extends} tag
2133
 
2134
01/04/2011
2135
- bugfix do not run filters and default modifier when displaying the debug template
2136
- bugfix of embedded double quotes within multi line strings (""")
2137
 
2138
29/03/2011
2139
- bugfix on error message in smarty_internal_compile_block.php
2140
- bugfix mb handling in strip modifier
2141
- bugfix for Smarty2 style registered compiler function on unnamed attribute passing like {tag $foo $bar}
2142
 
2143
17/03/2011
2144
- bugfix on default {function} parameters when {function} was used in nocache sections
2145
- bugfix on compiler object destruction. compiler_object property was by mistake unset.
2146
 
2147
09/03/2011
2148
-bugfix a variable filter should run before modifiers on an output tag (see change of 23/07/2010)
2149
 
2150
08/03/2011
2151
- bugfix loading config file without section should load only defaults
2152
 
2153
03/03/2011
2154
- bugfix "smarty" template variable was not recreated when cached templated had expired
2155
- bugfix internal rendered_content must be cleared after subtemplate was included
2156
 
2157
01/03/2011
2158
- bugfix replace modifier did not work in 3.0.7 on systems without multibyte support
2159
- bugfix {$smarty.template} could return in 3.0.7 parent template name instead of
2160
         child name when it needed to compile
2161
 
2162
25/02/2011
2163
- bugfix for Smarty2 style compiler plugins on unnamed attribute passing like {tag $foo $bar}
2164
 
2165
24/02/2011
2166
- bugfix $smarty->clearCache('some.tpl') did by mistake cache the template object
2167
 
2168
18/02/2011
2169
- bugfix removed possible race condition when isCached() was called for an individually cached subtemplate
2170
- bugfix force default debug.tpl to be loaded by the file resource
2171
 
2172
17/02/2011
2173
-improvement not to delete files starting with '.' from cache and template_c folders on clearCompiledTemplate() and clearCache()
2174
 
2175
16/02/2011
2176
-fixed typo in exception message of Smarty_Internal_Template
2177
-improvement allow leading spaces on } tag closing if auto_literal is enabled
2178
 
2179
13/02/2011
2180
- bufix replace $smarty->triggerError() by exception
2181
- removed obsolete {popup_init..} plugin from demo templates
2182
- bugfix replace $smarty->triggerError() by exception in smarty_internal_resource_extends.php
2183
 
2184
## Smarty 3.0.7  -
2185
09/02/2011
2186
- patched vulnerability when using {$smarty.template}
2187
 
2188
01/02/2011
2189
- removed assert() from config and template parser
2190
 
2191
31/01/2011
2192
- bugfix the lexer/parser did fail on special characters like VT
2193
 
2194
16/01/2011
2195
-bugfix of ArrayAccess object handling in internal _count() method
2196
-bugfix of Iterator object handling in internal _count() method
2197
 
2198
14/01/2011
2199
-bugfix removed memory leak while processing compileAllTemplates
2200
 
2201
12/01/2011
2202
- bugfix in {if} and {while} tag compiler when using assignments as condition and nocache mode
2203
 
2204
10/01/2011
2205
- bugfix when using {$smarty.block.child} and name of {block} was in double quoted string
2206
- bugfix updateParentVariables() was called twice when leaving {include} processing
2207
 
2208
- bugfix mb_str_replace in replace and escape modifiers work with utf8
2209
 
2210
31/12/2010
2211
- bugfix dynamic configuration of $debugging_crtl did not work
2212
- bugfix default value of $config_read_hidden changed to false
2213
- bugfix format of attribute array on compiler plugins
2214
- bugfix getTemplateVars() could return value from wrong scope
2215
 
2216
28/12/2010
2217
- bugfix multiple {append} tags failed to compile.
2218
 
2219
22/12/2010
2220
- update do not clone the Smarty object an internal createTemplate() calls to increase performance
2221
 
2222
21/12/2010
2223
- update html_options to support class and id attrs
2224
 
2225
17/12/2010
2226
- bugfix added missing support of $cache_attrs for registered plugins
2227
 
2228
15/12/2010
2229
- bugfix assignment as condition in {while} did drop an E_NOTICE
2230
 
2231
14/12/2010
2232
- bugfix when passing an array as default parameter at {function} tag
2233
 
2234
13/12/2010
2235
- bugfix {$smarty.template} in child template did not return right content
2236
- bugfix Smarty3 did not search the PHP include_path for template files
2237
 
2238
## Smarty 3.0.6  -
2239
 
2240
12/12/2010
2241
- bugfix fixed typo regarding yesterdays change to allow streamWrapper
2242
 
2243
11/12/2010
2244
- bugfix nested block tags in template inheritance child templates did not work correctly
2245
- bugfix {$smarty.current_dir} in child template did not point to dir of child template
2246
- bugfix changed code when writing temporary compiled files to allow stream_wrapper
2247
 
2248
06/12/2010
2249
- bugfix getTemplateVars() should return 'null' instead dropping E_NOTICE on an unassigned variable
2250
 
2251
05/12/2010
2252
- bugfix missing declaration of $smarty in Smarty class
2253
- bugfix empty($foo) in {if} did drop a notice when $foo was not assigned
2254
 
2255
01/12/2010
2256
- improvement of {debug} tag output
2257
 
2258
27/11/2010
2259
-change run output filter before cache file is written. (same as in Smarty2)
2260
 
2261
24/11/2011
2262
-bugfix on parser at  !$foo|modifier
2263
-change parser logic when assignments used as condition in {if] and {while} to allow assign to array element
2264
 
2265
23/11/2011
2266
-bugfix allow integer as attribute name in plugin calls
2267
-change  trimm whitespace from error message, removed long list of expected tokens
2268
 
2269
22/11/2010
2270
- bugfix on template inheritance when an {extends} tag was inserted by a prefilter
2271
- added error message for illegal variable file attributes at {extends...} tags
2272
 
2273
## Smarty 3.0.5  -
2274
 
2275
 
2276
19/11/2010
2277
- bugfix on block plugins with modifiers
2278
 
2279
18/11/2010
2280
- change on handling of unassigned template variable -- default will drop E_NOTICE
2281
- bugfix on Smarty2 wrapper load_filter() did not work
2282
 
2283
17/11/2010
2284
- bugfix on {call} with variable function name
2285
- bugfix on {block} if name did contain '-'
2286
- bugfix in function.fetch.php , referece to undefined $smarty
2287
 
2288
16/11/2010
2289
- bugfix whitespace in front of "<?php" in smarty_internal_compile_private_block_plugin.php
2290
- bugfix {$smarty.now} did compile incorrectly
2291
- bugfix on reset(),end(),next(),prev(),current() within templates
2292
- bugfix on default parameter for {function}
2293
 
2294
15/11/2010
2295
- bugfix when using {$smarty.session} as object
2296
- bugfix scoping problem on $smarty object passed to filters
2297
- bugfix captured content could not be accessed globally
2298
- bugfix Smarty2 wrapper functions could not be call from within plugins
2299
 
2300
## Smarty 3.0.4  -
2301
 
2302
14/11/2010
2303
- bugfix isset() did not allow multiple parameter
2304
- improvment of some error messages
2305
- bugfix html_image did use removed property $request_use_auto_globals
2306
- small performace patch in Smarty class
2307
 
2308
13/11/2010
2309
- bugfix  overloading problem when $smarty->fetch()/display() have been used in plugins
2310
				(introduced with 3.0.2)
2311
- code cleanup
2312
 
2313
## Smarty 3.0.3  -
2314
 
2315
13/11/2010
2316
- bugfix on {debug}
2317
- reverted location of loadPlugin() to Smarty class
2318
- fixed comments in plugins
2319
- fixed internal_config (removed unwanted code line)
2320
- improvement  remove last linebreak from {function} definition
2321
 
2322
## Smarty 3.0.2  -
2323
 
2324
12/11/2010
2325
- reactivated $error_reporting property handling
2326
- fixed typo in compile_continue
2327
- fixed security in {fetch} plugin
2328
- changed back plugin parameters to two. second is template object
2329
  with transparent access to Smarty object
2330
- fixed {config_load} scoping form compile time to run time
2331
 
2332
## Smarty 3.0.0  -
2333
 
2334
 
2335
 
2336
11/11/2010
2337
- major update including some API changes
2338
 
2339
10/11/2010
2340
- observe compile_id also for config files
2341
 
2342
09/11/2010
2343
-bugfix on  complex expressions as start value for {for} tag
2344
request_use_auto_globals
2345
04/11/2010
2346
- bugfix do not allow access of dynamic and private object members of assigned objects when
2347
  security is enabled.
2348
 
2349
01/11/2010
2350
- bugfix related to E_NOTICE change.  {if empty($foo)} did fail when $foo contained a string
2351
 
2352
28/10/2010
2353
- bugfix on compiling modifiers within $smarty special vars like {$smarty.post.{$foo|lower}}
2354
 
2355
27/10/2010
2356
- bugfix default parameter values did not work for template functions included with {include}
2357
 
2358
25/10/2010
2359
- bugfix for E_NOTICE change, array elements did not work as modifier parameter
2360
 
2361
20/10/2010
2362
- bugfix for the E_NOTICE change
2363
 
2364
19/10/2010
2365
- change Smarty does no longer mask out E_NOTICE by default during template processing
2366
 
2367
13/10/2010
2368
- bugfix removed ambiguity between ternary and stream variable in template syntax
2369
- bugfix use caching properties of template instead of smarty object when compiling child {block}
2370
- bugfix {*block}...{/block*} did throw an exception in template inheritance
2371
- bugfix on template inheritance using nested eval or string resource in {extends} tags
2372
- bugfix on output buffer handling in isCached() method
2373
 
2374
##  RC4 -
2375
 
2376
01/10/2010
2377
- added {break} and {continue} tags for flow control of {foreach},{section},{for} and {while} loops
2378
- change of 'string' resource. It's no longer evaluated and compiled files are now stored
2379
- new 'eval' resource which evaluates a template without saving the compiled file
2380
- change in isCached() method to allow multiple calls for the same template
2381
 
2382
25/09/2010
2383
- bugfix on some compiling modifiers
2384
 
2385
24/09/2010
2386
- bugfix merge_compiled_includes flag was not restored correctly in {block} tag
2387
 
2388
22/09/2010
2389
- bugfix on default modifier
2390
 
2391
18/09/2010
2392
- bugfix untility compileAllConfig() did not create sha1 code for compiled template file names if template_dir was defined with no trailing DS
2393
- bugfix on templateExists() for extends resource
2394
 
2395
17/09/2010
2396
- bugfix {$smarty.template} and {$smarty.current_dir} did not compile correctly within {block} tags
2397
- bugfix corrected error message on missing template files in extends resource
2398
- bugfix untility compileAllTemplates() did not create sha1 code for compiled template file names if template_dir was defined with no trailing DS
2399
 
2400
16/09/2010
2401
- bugfix when a doublequoted modifier parameter did contain Smarty tags and ':'
2402
 
2403
15/09/2010
2404
- bugfix resolving conflict between '<%'/'%>' as custom Smarty delimiter and ASP tags
2405
- use ucfirst for resource name on internal resource class names
2406
 
2407
12/09/2010
2408
- bugfix for change of 08/09/2010 (final {block} tags in subtemplates did not produce correct results)
2409
 
2410
10/09/2010
2411
- bugfix for change of 08/09/2010 (final {block} tags in subtemplates did not produce correct results)
2412
 
2413
08/09/2010
2414
- allow multiple template inheritance branches starting in subtemplates
2415
 
2416
07/09/2010
2417
- bugfix {counter} and {cycle} plugin assigned result to smarty variable not in local(template) scope
2418
- bugfix templates containing just {strip} {/strip} tags did produce an error
2419
 
2420
 
2421
23/08/2010
2422
- fixed E_STRICT errors for uninitialized variables
2423
 
2424
22/08/2010
2425
- added attribute cache_id to {include} tag
2426
 
2427
13/08/2010
2428
- remove exception_handler property from Smarty class
2429
- added Smarty's own exceptions SmartyException and SmartyCompilerException
2430
 
2431
09/08/2010
2432
- bugfix on modifier with doublequoted strings as parameter containing embedded tags
2433
 
2434
06/08/2010
2435
- bugfix when cascading some modifier like |strip|strip_tags modifier
2436
 
2437
05/08/2010
2438
- added plugin type modifiercompiler to produce compiled modifier code
2439
- changed standard modifier plugins to the compiling versions whenever possible
2440
- bugfix in nocache sections {include} must not cache the subtemplate
2441
 
2442
02/08/2010
2443
- bugfix strip did not work correctly in conjunction with comment lines
2444
 
2445
31/07/2010
2446
- bugfix on nocache attribute at {assign} and {append}
2447
 
2448
30/07/2010
2449
- bugfix passing scope attributes in doublequoted strings did not work at {include} {assign} and {append}
2450
 
2451
25/07/2010
2452
- another bugfix of change from 23/07/2010 when compiling modifier
2453
 
2454
24/07/2010
2455
- bugfix of change from 23/07/2010 when compiling modifier
2456
 
2457
23/07/2010
2458
- changed execution order. A variable filter does now run before modifiers on output of variables
2459
- bugfix use always { and } as delimiter for debug.tpl
2460
 
2461
 
2462
22/07/2010
2463
- bugfix in templateExists() method
2464
 
2465
20/07/2010
2466
- fixed handling of { strip } tag with whitespaces
2467
 
2468
15/07/2010
2469
- bufix  {$smarty.template} does include now the relative path, not just filename
2470
 
2471
##  RC3 -
2472
 
2473
 
2474
 
2475
 
2476
15/07/2010
2477
- make the date_format modifier work also on objects of the DateTime class
2478
- implementation of parsetrees in the parser to close security holes and remove unwanted empty line in HTML output
2479
 
2480
08/07/2010
2481
- bugfix on assigning multidimensional arrays within templates
2482
- corrected bugfix for truncate modifier
2483
 
2484
07/07/2010
2485
- bugfix the truncate modifier needs to check if the string is utf-8 encoded or not
2486
- bugfix support of script files relative to trusted_dir
2487
 
2488
06/07/2010
2489
- create exception on recursive {extends} calls
2490
- fixed reported line number at "unexpected closing tag " exception
2491
- bugfix on escape:'mail' modifier
2492
- drop exception if 'item' variable is equal 'from' variable in {foreach} tag
2493
 
2494
01/07/2010
2495
- removed call_user_func_array calls for optimization of compiled code when using registered modifiers and plugins
2496
 
2497
25/06/2010
2498
- bugfix escaping " when block tags are used within doublequoted strings
2499
 
2500
24/06/2010
2501
- replace internal get_time() calls with standard PHP5 microtime(true) calls in Smarty_Internal_Utility
2502
- added $smarty->register->templateClass() and $smarty->unregister->templateClass() methods for supporting static classes with namespace
2503
 
2504
 
2505
22/06/2010
2506
- allow spaces between typecast and value in template syntax
2507
- bugfix get correct count of traversables in {foreach} tag
2508
 
2509
21/06/2010
2510
- removed use of PHP shortags SMARTY_PHP_PASSTHRU mode
2511
- improved speed of cache->clear() when a compile_id was specified and use_sub_dirs is true
2512
 
2513
20/06/2010
2514
- replace internal get_time() calls with standard PHP5 microtime(true) calls
2515
- closed security hole when php.ini asp_tags = on
2516
 
2517
18/06/2010
2518
- added __toString method to the Smarty_Variable class
2519
 
2520
 
2521
14/06/2010
2522
- make handling of Smarty comments followed by newline BC to Smarty2
2523
 
2524
 
2525
##  RC2 -
2526
 
2527
 
2528
 
2529
13/06/2010
2530
- bugfix Smarty3 did not handle hexadecimals like 0x0F as numerical value
2531
- bugifx Smarty3 did not accept numerical constants like .1 or 2. (without a leading or trailing digit)
2532
 
2533
11/06/2010
2534
- bugfix the lexer did fail on larger {literal} ... {/literal} sections
2535
 
2536
03/06/2010
2537
- bugfix on calling template functions like Smarty tags
2538
 
2539
01/06/2010
2540
- bugfix on template functions used with template inheritance
2541
- removed /* vim: set expandtab: */ comments
2542
- bugfix of auto literal problem introduce with fix of 31/05/2010
2543
 
2544
31/05/2010
2545
- bugfix the parser did not allow some smarty variables with special name like $for, $if, $else and others.
2546
 
2547
27/05/2010
2548
- bugfix on object chaining using variable properties
2549
- make scope of {counter} and {cycle} tags again global as in Smarty2
2550
 
2551
26/05/2010
2552
- bugfix removed decrepated register_resource call in smarty_internal_template.php
2553
 
2554
25/05/2010
2555
- rewrite of template function handling to improve speed
2556
- bugfix on file dependency when merge_compiled_includes = true
2557
 
2558
 
2559
16/05/2010
2560
- bugfix when passing parameter with numeric name like {foo 1='bar' 2='blar'}
2561
 
2562
14/05/2010
2563
- bugfix compile new config files if compile_check and force_compile = false
2564
- added variable static classes names to template syntax
2565
 
2566
11/05/2010
2567
- bugfix  make sure that the cache resource is loaded in all conditions when template methods getCached... are called externally
2568
- reverted the change 0f 30/04/2010. With the exception of forward references template functions can be again called by a standard tag.
2569
 
2570
10/05/2010
2571
- bugfix on {foreach} and {for} optimizations of 27/04/2010
2572
 
2573
09/05/2010
2574
- update of template and config file parser because of minor parser generator bugs
2575
 
2576
07/05/2010
2577
- bugfix on {insert}
2578
 
2579
06/05/2010
2580
- bugfix when merging compiled templates and objects are passed as parameter of the {include} tag
2581
 
2582
05/05/2010
2583
- bugfix on {insert} to cache parameter
2584
- implementation of $smarty->default_modifiers as in Smarty2
2585
- bugfix on getTemplateVars method
2586
 
2587
01/05/2010
2588
- bugfix on handling of variable method names at object chaning
2589
 
2590
30/04/2010
2591
- bugfix when comparing timestamps in sysplugins/smarty_internal_config.php
2592
- work around of a substr_compare bug in older PHP5 versions
2593
- bugfix on template inheritance for tag names starting with "block"
2594
- bugfix on {function} tag with name attribute in doublequoted strings
2595
- fix to make calling of template functions unambiguously by madatory usage of the {call} tag
2596
 
2597
##  RC1 -
2598
 
2599
27/04/2010
2600
- change default of $debugging_ctrl to 'NONE'
2601
- optimization of compiled code of {foreach} and {for} loops
2602
- change of compiler for config variables
2603
 
2604
27/04/2010
2605
- bugfix in $smarty->cache->clear() method. (do not cache template object)
2606
 
2607
 
2608
17/04/2010
2609
- security fix in {math} plugin
2610
 
2611
 
2612
12/04/2010
2613
- bugfix in smarty_internal_templatecompilerbase (overloaded property)
2614
- removed parser restrictions in using true,false and null as ID
2615
 
2616
07/04/2010
2617
- bugfix typo in smarty_internal_templatecompilerbase
2618
 
2619
31/03/2010
2620
- compile locking by touching old compiled files to avoid concurrent compilations
2621
 
2622
29/03/2010
2623
- bugfix allow array definitions as modifier parameter
2624
- bugfix observe compile_check property when loading config files
2625
- added the template object as third filter parameter
2626
 
2627
25/03/2010
2628
- change of utility->compileAllTemplates() log messages
2629
- bugfix on nocache code in {function} tags
2630
- new method utility->compileAllConfig() to compile all config files
2631
 
2632
24/03/2010
2633
- bugfix on register->modifier() error messages
2634
 
2635
23/03/2010
2636
- bugfix on template inheritance when calling multiple child/parent relations
2637
- bugfix on caching mode SMARTY_CACHING_LIFETIME_SAVED and cache_lifetime = 0
2638
 
2639
22/03/2010
2640
- bugfix make directory separator operating system independend in compileAllTemplates()
2641
 
2642
21/03/2010
2643
- removed unused code in compileAllTemplates()
2644
 
2645
19/03/2010
2646
- bugfix for multiple {/block} tags on same line
2647
 
2648
17/03/2010
2649
- bugfix make $smarty->cache->clear() function independent from caching status
2650
 
2651
16/03/2010
2652
- bugfix on assign attribute at registered template objects
2653
- make handling of modifiers on expression BC to Smarty2
2654
 
2655
15/03/2010
2656
- bugfix on block plugin calls
2657
 
2658
11/03/2010
2659
- changed parsing of <?php and ?> back to Smarty2 behaviour
2660
 
2661
08/03/2010
2662
- bugfix on uninitialized properties in smarty_internal_template
2663
- bugfix on $smarty->disableSecurity()
2664
 
2665
04/03/2010
2666
- bugfix allow uppercase chars in registered resource names
2667
- bugfix on accessing chained objects of static classes
2668
 
2669
01/03/2010
2670
- bugfix on nocache code in {block} tags if child template was included by {include}
2671
 
2672
27/02/2010
2673
- allow block tags inside double quoted string
2674
 
2675
26/02/2010
2676
- cache modified check implemented
2677
- support of access to a class constant from an object (since PHP 5.3)
2678
 
2679
24/02/2010
2680
- bugfix on expressions in doublequoted string enclosed in backticks
2681
- added security property $static_classes for static class security
2682
 
2683
18/02/2010
2684
- bugfix on parsing Smarty tags inside <?xml ... ?>
2685
- bugfix on truncate modifier
2686
 
2687
17/02/2010
2688
- removed restriction that modifiers did require surrounding parenthesis in some cases
2689
- added {$smarty.block.child} special variable for template inheritance
2690
 
2691
16/02/2010
2692
- bugfix on <?xml ... ?> tags for all php_handling modes
2693
- bugfix on parameter of variablefilter.htmlspecialchars.php plugin
2694
 
2695
14/02/2010
2696
- added missing _plugins property in smarty.class.php
2697
- bugfix $smarty.const... inside doublequoted strings and backticks was compiled into wrong PHP code
2698
 
2699
12/02/2010
2700
- bugfix on nested {block} tags
2701
- changed Smarty special variable $smarty.parent to $smarty.block.parent
2702
- added support of nested {bock} tags
2703
 
2704
10/02/2010
2705
- avoid possible notice on $smarty->cache->clear(...), $smarty->clear_cache(....)
2706
- allow Smarty tags inside <? ... ?> tags in SMARTY_PHP_QUOTE and SMARTY_PHP_PASSTHRU mode
2707
- bugfix at new "for" syntax like {for $x=1 to 10 step 2}
2708
 
2709
09/02/2010
2710
- added $smarty->_tag_stack for tracing block tag hierarchy
2711
 
2712
08/02/2010
2713
- bugfix  use template fullpath at §smarty->cache->clear(...), $smarty->clear_cache(....)
2714
- bugfix of cache filename on extended templates when force_compile=true
2715
 
2716
07/02/2010
2717
- bugfix on changes of 05/02/2010
2718
- preserve line endings type form template source
2719
- API changes (see README file)
2720
 
2721
05/02/2010
2722
- bugfix on modifier and block plugins with same name
2723
 
2724
02/02/2010
2725
- retaining newlines at registered functions and function plugins
2726
 
2727
01/25/2010
2728
- bugfix cache resource was not loaded when caching was globally off but enabled at a template object
2729
- added test that $_SERVER['SCRIPT_NAME'] does exist in Smarty.class.php
2730
 
2731
01/22/2010
2732
- new method $smarty->createData([$parent]) for creating a data object (required for bugfixes below)
2733
- bugfix config_load() method now works also on a data object
2734
- bugfix get_config_vars() method now works also on a data and template objects
2735
- bugfix clear_config() method now works also on a data and template objects
2736
 
2737
01/19/2010
2738
- bugfix on plugins if same plugin was called from a nocache section first and later from a cached section
2739
 
2740
 
2741
###beta 7###
2742
 
2743
 
2744
01/17/2010
2745
- bugfix on $smarty.const... in double quoted strings
2746
 
2747
01/16/2010
2748
- internal change of config file lexer/parser on handling of section names
2749
- bugfix on registered objects (format parameter of register_object was not handled correctly)
2750
 
2751
01/14/2010
2752
- bugfix on backslash within single quoted strings
2753
- bugfix allow absolute filepath for config files
2754
- bugfix on special Smarty variable $smarty.cookies
2755
- revert handling of newline on no output tags like {if...}
2756
- allow special characters in config file section names for Smarty2 BC
2757
 
2758
01/13/2010
2759
- bugfix on {if} tags
2760
 
2761
01/12/2010
2762
- changed back modifier handling in parser. Some restrictions still apply:
2763
    if modifiers are used in side {if...} expression or in mathematical expressions
2764
    parentheses must be used.
2765
- bugfix the {function..} tag did not accept the name attribute in double quotes
2766
- closed possible security hole at <?php ... ?> tags
2767
- bugfix of config file parser on large config files
2768
 
2769
 
2770
###beta 6####
2771
 
2772
01/11/2010
2773
- added \n to the compiled code of the {if},{else},{elseif},{/if} tags to get output of newlines as expected by the template source
2774
- added missing support of insert plugins
2775
- added optional nocache attribute to {block} tags in parent template
2776
- updated <?php...?> handling supporting now heredocs and newdocs. (thanks to Thue Jnaus Kristensen)
2777
 
2778
01/09/2010
2779
- bugfix on nocache {block} tags in parent templates
2780
 
2781
01/08/2010
2782
- bugfix on variable filters. filter/nofilter attributes did not work on output statements
2783
 
2784
01/07/2010
2785
- bugfix on file dependency at template inheritance
2786
- bugfix on nocache code at template inheritance
2787
 
2788
01/06/2010
2789
- fixed typo in smarty_internal_resource_registered
2790
- bugfix for custom delimiter at extends resource and {extends} tag
2791
 
2792
01/05/2010
2793
- bugfix sha1() calculations at extends resource and some general improvments on sha1() handling
2794
 
2795
 
2796
01/03/2010
2797
- internal change on building cache files
2798
 
2799
01/02/2010
2800
- update cached_timestamp at the template object after cache file is written to avoid possible side effects
2801
- use internally always SMARTY_CACHING_LIFETIME_* constants
2802
 
2803
01/01/2010
2804
- bugfix for obtaining plugins which must be included (related to change of 12/30/2009)
2805
- bugfix for {php} tag (trow an exception if allow_php_tag = false)
2806
 
2807
12/31/2009
2808
- optimization of generated code for doublequoted strings containing variables
2809
- rewrite of {function} tag handling
2810
  - can now be declared in an external subtemplate
2811
  - can contain nocache sections (nocache_hash handling)
2812
  - can be called in noccache sections (nocache_hash handling)
2813
  - new {call..} tag to call template functions with a variable name {call name=$foo}
2814
- fixed nocache_hash handling in merged compiled templates
2815
 
2816
12/30/2009
2817
- bugfix for plugins defined in the script as smarty_function_foo
2818
 
2819
12/29/2009
2820
- use sha1() for filepath encoding
2821
- updates on nocache_hash handling
2822
- internal change on merging some data
2823
- fixed cache filename for custom resources
2824
 
2825
12/28/2009
2826
- update for security fixes
2827
- make modifier plugins always trusted
2828
- fixed bug loading modifiers in child template at template inheritance
2829
 
2830
12/27/2009
2831
--- this is a major update with a couple of internal changes ---
2832
- new config file lexer/parser (thanks to Thue Jnaus Kristensen)
2833
- template lexer/parser fixes for PHP and {literal} handing (thanks to Thue Jnaus Kristensen)
2834
- fix on registered plugins with different type but same name
2835
- rewrite of plugin handling (optimized execution speed)
2836
- closed a security hole regarding PHP code injection into cache files
2837
- fixed bug in clear cache handling
2838
- Renamed a couple of internal classes
2839
- code cleanup for merging compiled templates
2840
- couple of runtime optimizations (still not all done)
2841
- update of getCachedTimestamp()
2842
- fixed bug on modifier plugins at nocache output
2843
 
2844
12/19/2009
2845
- bugfix on comment lines in config files
2846
 
2847
12/17/2009
2848
- bugfix of parent/global variable update at included/merged subtemplates
2849
- encode final template filepath into filename of compiled and cached files
2850
- fixed {strip} handling in auto literals
2851
 
2852
12/16/2009
2853
- update of changelog
2854
- added {include file='foo.tpl' inline}  inline option to merge compiled code of subtemplate into the calling template
2855
 
2856
12/14/2009
2857
- fixed sideefect of last modification (objects in array index did not work anymore)
2858
 
2859
12/13/2009
2860
- allow boolean negation ("!") as operator on variables outside {if} tag
2861
 
2862
12/12/2009
2863
- bugfix on single quotes inside {function} tag
2864
- fix short append/prepend attributes in {block} tags
2865
 
2866
12/11/2009
2867
- bugfix on clear_compiled_tpl (avoid possible warning)
2868
 
2869
12/10/2009
2870
- bugfix on {function} tags and template inheritance
2871
 
2872
12/05/2009
2873
- fixed problem when a cached file was fetched several times
2874
- removed unneeded lexer code
2875
 
2876
12/04/2009
2877
- added max attribute to for loop
2878
- added security mode allow_super_globals
2879
 
2880
12/03/2009
2881
- template inheritance: child templates can now call functions defined by the {function} tag in the parent template
2882
- added {for $foo = 1 to 5 step 2}  syntax
2883
- bugfix for {$foo.$x.$y.$z}
2884
 
2885
12/01/2009
2886
- fixed parsing of names of special formated tags like if,elseif,while,for,foreach
2887
- removed direct access to constants in templates because of some syntax problems
2888
- removed cache resource plugin for mysql from the distribution
2889
- replaced most hard errors (exceptions) by softerrors(trigger_error) in plugins
2890
- use $template_class property for template class name when compiling {include},{eval} and {extends} tags
2891
 
2892
11/30/2009
2893
- map 'true' to SMARTY_CACHING_LIFETIME_CURRENT for the $smarty->caching parameter
2894
- allow {function} tags within {block} tags
2895
 
2896
11/28/2009
2897
- ignore compile_id at debug template
2898
- added direct access to constants in templates
2899
- some lexer/parser optimizations
2900
 
2901
11/27/2009
2902
- added cache resource MYSQL plugin
2903
 
2904
11/26/2009
2905
- bugfix on nested doublequoted strings
2906
- correct line number on unknown tag error message
2907
- changed {include} compiled code
2908
- fix on checking dynamic varibales with error_unassigned = true
2909
 
2910
11/25/2009
2911
- allow the following writing for boolean: true, TRUE, True, false, FALSE, False
2912
- {strip} tag functionality rewritten
2913
 
2914
11/24/2009
2915
- bugfix for $smarty->config_overwrite = false
2916
 
2917
11/23/2009
2918
- suppress warnings on unlink caused by race conditions
2919
- correct line number on unknown tag error message
2920
 
2921
------- beta 5
2922
11/23/2009
2923
- fixed configfile parser for text starting with a numeric char
2924
- the default_template_handler_func may now return a filepath to a template source
2925
 
2926
11/20/2009
2927
- bugfix for empty config files
2928
- convert timestamps of registered resources to integer
2929
 
2930
11/19/2009
2931
- compiled templates are no longer touched with the filemtime of template source
2932
 
2933
11/18/2009
2934
- allow integer as attribute name in plugin calls
2935
 
2936
------- beta 4
2937
11/18/2009
2938
- observe umask settings when setting file permissions
2939
- avoide unneeded cache file creation for subtemplates which did occur in some situations
2940
- make $smarty->_current_file available during compilation for Smarty2 BC
2941
 
2942
11/17/2009
2943
- sanitize compile_id and cache_id (replace illegal chars with _)
2944
- use _dir_perms and _file_perms properties at file creation
2945
- new constant SMARTY_RESOURCE_DATE_FORMAT (default '%b %e, %Y') which is used as default format in modifier date_format
2946
- added {foreach $array as $key=>$value} syntax
2947
- renamed extend tag and resource to extends: {extends file='foo.tol'} , $smarty->display('extends:foo.tpl|bar.tpl);
2948
- bugfix cycle plugin
2949
 
2950
11/15/2009
2951
- lexer/parser optimizations on quoted strings
2952
 
2953
11/14/2009
2954
- bugfix on merging compiled templates when source files got removed or renamed.
2955
- bugfix modifiers on registered object tags
2956
- fixed locaion where outputfilters are running
2957
- fixed config file definitions at EOF
2958
- fix on merging compiled templates with nocache sections in nocache includes
2959
- parser could run into a PHP error on wrong file attribute
2960
 
2961
11/12/2009
2962
- fixed variable filenames in {include_php} and {insert}
2963
- added scope to Smarty variables in the {block} tag compiler
2964
- fix on nocache code in child {block} tags
2965
 
2966
11/11/2009
2967
- fixed {foreachelse}, {forelse}, {sectionelse} compiled code at nocache variables
2968
- removed checking for reserved variables
2969
- changed debugging handling
2970
 
2971
11/10/2009
2972
- fixed preg_qoute on delimiters
2973
 
2974
11/09/2009
2975
- lexer/parser bugfix
2976
- new SMARTY_SPL_AUTOLOAD constant to control the autoloader option
2977
- bugfix for {function} block tags in included templates
2978
 
2979
11/08/2009
2980
- fixed alphanumeric array index
2981
- bugfix on complex double quoted strings
2982
 
2983
11/05/2009
2984
- config_load method can now be called on data and template objects
2985
 
2986
11/04/2009
2987
- added typecasting support for template variables
2988
- bugfix on complex indexed special Smarty variables
2989
 
2990
11/03/2009
2991
- fixed parser error on objects with special smarty vars
2992
- fixed file dependency for {incude} inside {block} tag
2993
- fixed not compiling on non existing compiled templates when compile_check = false
2994
- renamed function names of autoloaded Smarty methods to Smarty_Method_....
2995
- new security_class property (default is Smarty_Security)
2996
 
2997
11/02/2009
2998
- added neq,lte,gte,mod as aliases to if conditions
2999
- throw exception on illegal Smarty() constructor calls
3000
 
3001
10/31/2009
3002
- change of filenames in sysplugins folder for internal spl_autoload function
3003
- lexer/parser changed for increased compilation speed
3004
 
3005
10/27/2009
3006
- fixed missing quotes in include_php.php
3007
 
3008
10/27/2009
3009
- fixed typo in method.register_resource
3010
- pass {} through as literal
3011
 
3012
10/26/2009
3013
- merge only compiled subtemplates into the compiled code of the main template
3014
 
3015
10/24/2009
3016
- fixed nocache vars at internal block tags
3017
- fixed merging of recursive includes
3018
 
3019
10/23/2009
3020
- fixed nocache var problem
3021
 
3022
10/22/2009
3023
- fix trimwhitespace outputfilter parameter
3024
 
3025
10/21/2009
3026
- added {$foo++}{$foo--} syntax
3027
- buxfix changed PHP "if (..):" to "if (..){" because of possible bad code when concenating PHP tags
3028
- autoload Smarty internal classes
3029
- fixed file dependency for config files
3030
- some code optimizations
3031
- fixed function definitions on some autoloaded methods
3032
- fixed nocache variable inside if condition of {if} tag
3033
 
3034
10/20/2009
3035
- check at compile time for variable filter to improve rendering speed if no filter is used
3036
- fixed bug at combination of {elseif} tag and {...} in double quoted strings of static class parameter
3037
 
3038
10/19/2009
3039
- fixed compiled template merging on variable double quoted strings as name
3040
- fixed bug in caching mode 2 and cache_lifetime -1
3041
- fixed modifier support on block tags
3042
 
3043
10/17/2009
3044
- remove ?>\n<?php and ?><?php sequences from compiled template
3045
 
3046
10/15/2009
3047
- buxfix on assigning array elements inside templates
3048
- parser bugfix on array access
3049
 
3050
10/15/2009
3051
- allow bit operator '&' inside {if} tag
3052
- implementation of ternary operator
3053
 
3054
10/13/2009
3055
- do not recompile evaluated templates if reused just with other data
3056
- recompile config files when config properties did change
3057
- some lexer/parser otimizations
3058
 
3059
10/11/2009
3060
- allow {block} tags inside included templates
3061
- bugfix for resource plugins in Smarty2 format
3062
- some optimizations of internal.template.php
3063
 
3064
10/11/2009
3065
- fixed bug when template with same name is used with different data objects
3066
- fixed bug with double quoted name attribute at {insert} tag
3067
- reenabled assign_by_ref and append_by_ref methods
3068
 
3069
10/07/2009
3070
- removed block nesting checks for {capture}
3071
 
3072
10/05/2009
3073
- added support of "isinstance" to {if} tag
3074
 
3075
10/03/2009
3076
- internal changes to improve performance
3077
- fix registering of filters for classes
3078
 
3079
10/01/2009
3080
- removed default timezone setting
3081
- reactivated PHP resource for simple PHP templates. Must set allow_php_templates = true to enable
3082
- {PHP} tag can be enabled by allow_php_tag = true
3083
 
3084
09/30/2009
3085
- fixed handling template_exits method for all resource types
3086
- bugfix for other cache resources than file
3087
- the methods assign_by_ref is now wrapped to assign, append_by_ref to append
3088
- allow arrays of variables pass in display, fetch and createTemplate calls
3089
  $data = array('foo'=>'bar','foo2'=>'blar');
3090
  $smarty->display('my.tpl',$data);
3091
 
3092
09/29/2009
3093
- changed {php} tag handling
3094
- removed support of Smarty::instance()
3095
- removed support of PHP resource type
3096
- improved execution speed of {foreach} tags
3097
- fixed bug in {section} tag
3098
 
3099
09/23/2009
3100
- improvements and bugfix on {include} tag handling
3101
NOTICE: existing compiled template and cache files must be deleted
3102
 
3103
09/19/2009
3104
- replace internal "eval()" calls by "include" during rendering process
3105
- speed improvment for templates which have included subtemplates
3106
    the compiled code of included templates is merged into the compiled code of the parent template
3107
- added logical operator "xor" for {if} tag
3108
- changed parameter ordering for Smarty2 BC
3109
    fetch($template, $cache_id = null, $compile_id = null, $parent = null)
3110
    display($template, $cache_id = null, $compile_id = null, $parent = null)
3111
    createTemplate($template, $cache_id = null, $compile_id = null, $parent = null)
3112
- property resource_char_set is now replaced by constant SMARTY_RESOURCE_CHAR_SET
3113
- fixed handling of classes in registered blocks
3114
- speed improvement of lexer on text sections
3115
 
3116
09/01/2009
3117
- dropped nl2br as plugin
3118
- added '<>' as comparission operator in {if} tags
3119
- cached caching_lifetime property to cache_liftime for backward compatibility with Smarty2.
3120
  {include} optional attribute is also now cache_lifetime
3121
- fixed trigger_error method (moved into Smarty class)
3122
- version is now  Beta!!!
3123
 
3124
 
3125
08/30/2009
3126
- some speed optimizations on loading internal plugins
3127
 
3128
 
3129
08/29/2009
3130
- implemented caching of registered Resources
3131
- new property 'auto_literal'. if true(default)  '{ ' and ' }' interpreted as literal, not as Smarty delimiter
3132
 
3133
 
3134
08/28/2009
3135
- Fix on line breaks inside {if} tags
3136
 
3137
08/26/2009
3138
- implemented registered resources as in Smarty2. NOTE: caching does not work yet
3139
- new property 'force_cache'. if true it forces the creation of a new cache file
3140
- fixed modifiers on arrays
3141
- some speed optimization on loading internal classes
3142
 
3143
 
3144
08/24/2009
3145
- fixed typo in lexer definition for '!==' operator
3146
- bugfix - the ouput of plugins was not cached
3147
- added global variable SCRIPT_NAME
3148
 
3149
08/21/2009
3150
- fixed problems whitespace in conjuction with custom delimiters
3151
- Smarty tags can now be used as value anywhere
3152
 
3153
08/18/2009
3154
- definition of template class name moded in internal.templatebase.php
3155
- whitespace parser changes
3156
 
3157
08/12/2009
3158
- fixed parser problems
3159
 
3160
08/11/2009
3161
- fixed parser problems with custom delimiter
3162
 
3163
08/10/2009
3164
- update of mb support in plugins
3165
 
3166
 
3167
08/09/2009
3168
- fixed problems with doublequoted strings at name attribute of {block} tag
3169
- bugfix at scope attribute of {append} tag
3170
 
3171
08/08/2009
3172
- removed all internal calls of Smarty::instance()
3173
- fixed code in double quoted strings
3174
 
3175
08/05/2009
3176
- bugfix mb_string support
3177
- bugfix of \n.\t etc in double quoted strings
3178
 
3179
07/29/2009
3180
- added syntax for variable config vars  like  #$foo#
3181
 
3182
07/28/2009
3183
- fixed parsing of $smarty.session vars containing objects
3184
 
3185
07/22/2009
3186
- fix of "$" handling in double quoted strings
3187
 
3188
07/21/2009
3189
- fix that {$smarty.current_dir} return correct value within {block} tags.
3190
 
3191
07/20/2009
3192
- drop error message on unmatched {block} {/block} pairs
3193
 
3194
07/01/2009
3195
- fixed smarty_function_html_options call in plugin function.html_select_date.php (missing ,)
3196
 
3197
06/24/2009
3198
- fixed smarty_function_html_options call in plugin function.html_select_date.php
3199
 
3200
06/22/2009
3201
- fix on \n and spaces inside smarty tags
3202
- removed request_use_auto_globals propert as it is no longer needed because Smarty 3 will always run under PHP 5
3203
 
3204
 
3205
06/18/2009
3206
- fixed compilation of block plugins when caching enabled
3207
- added $smarty.current_dir  which returns the current working directory
3208
 
3209
06/14/2009
3210
- fixed array access on super globals
3211
- allow smarty tags within xml tags
3212
 
3213
06/13/2009
3214
- bugfix at extend resource: create unique files for compiled template and cache for each combination of template files
3215
- update extend resource to handle appen and prepend block attributes
3216
- instantiate classes of plugins instead of calling them static
3217
 
3218
06/03/2009
3219
- fixed repeat at block plugins
3220
 
3221
05/25/2009
3222
- fixed problem with caching of compiler plugins
3223
 
3224
05/14/2009
3225
- fixed directory separator handling
3226
 
3227
05/09/2009
3228
- syntax change for stream variables
3229
- fixed bug when using absolute template filepath and caching
3230
 
3231
05/08/2009
3232
- fixed bug of {nocache}  tag in included templates
3233
 
3234
05/06/2009
3235
- allow that plugins_dir folder names can end without directory separator
3236
 
3237
05/05/2009
3238
- fixed E_STRICT incompabilities
3239
- {function} tag bug fix
3240
- security policy definitions have been moved from plugins folder to file Security.class.php in libs folder
3241
- added allow_super_global configuration to security
3242
 
3243
04/30/2009
3244
- functions defined with the {function} tag now always have global scope
3245
 
3246
04/29/2009
3247
- fixed problem with directory setter methods
3248
- allow that cache_dir can end without directory separator
3249
 
3250
04/28/2009
3251
- the {function} tag can no longer overwrite standard smarty tags
3252
- inherit functions defined by the {fuction} tag into subtemplates
3253
- added {while <statement>} sytax to while tag
3254
 
3255
04/26/2009
3256
- added trusted stream checking to security
3257
- internal changes at file dependency check for caching
3258
 
3259
04/24/2009
3260
- changed name of {template} tag to {function}
3261
- added new {template} tag
3262
 
3263
04/23/2009
3264
- fixed access of special smarty variables from included template
3265
 
3266
04/22/2009
3267
- unified template stream syntax with standard Smarty resource syntax  $smarty->display('mystream:mytemplate')
3268
 
3269
04/21/2009
3270
- change of new style syntax for forach. Now:  {foreach $array as $var}  like in PHP
3271
 
3272
04/20/2009
3273
- fixed "$foo.bar  ..." variable replacement in double quoted strings
3274
- fixed error in {include} tag with variable file attribute
3275
 
3276
04/18/2009
3277
- added stream resources  ($smarty->display('mystream://mytemplate'))
3278
- added stream variables  {$mystream:myvar}
3279
 
3280
04/14/2009
3281
- fixed compile_id handling on {include} tags
3282
- fixed append/prepend attributes in {block} tag
3283
- added  {if  'expression' is in 'array'}  syntax
3284
- use crc32 as hash for compiled config files.
3285
 
3286
04/13/2009
3287
- fixed scope problem with parent variables when appending variables within templates.
3288
- fixed code for {block} without childs (possible sources for notice errors removed)
3289
 
3290
04/12/2009
3291
- added append and prepend attribute to {block} tag
3292
 
3293
04/11/2009
3294
- fixed variables in 'file' attribute of {extend} tag
3295
- fixed problems in modifiers (if mb string functions not present)
3296
 
3297
04/10/2009
3298
- check if mb string functions available otherwise fallback to normal string functions
3299
- added global variable scope SMARTY_GLOBAL_SCOPE
3300
- enable 'variable' filter by default
3301
- fixed {$smarty.block.parent.foo}
3302
- implementation of a 'variable' filter as replacement for default modifier
3303
 
3304
04/09/2009
3305
- fixed execution of filters defined by classes
3306
- compile the always the content of {block} tags to make shure that the filters are running over it
3307
- syntax corrections on variable object property
3308
- syntax corrections on array access in dot syntax
3309
 
3310
04/08/2009
3311
- allow variable object property
3312
 
3313
04/07/2009
3314
- changed variable scopes to SMARTY_LOCAL_SCOPE, SMARTY_PARENT_SCOPE, SMARTY_ROOT_SCOPE to avoid possible conflicts with user constants
3315
- Smarty variable global attribute replaced with scope attribute
3316
 
3317
04/06/2009
3318
- variable scopes LOCAL_SCOPE, PARENT_SCOPE, ROOT_SCOPE
3319
- more getter/setter methods
3320
 
3321
04/05/2009
3322
- replaced new array looping syntax {for $foo in $array} with {foreach $foo in $array} to avoid confusion
3323
- added append array for short form of assign  {$foo[]='bar'} and allow assignments to nested arrays {$foo['bla']['blue']='bar'}
3324
 
3325
04/04/2009
3326
- make output of template default handlers cachable and save compiled source
3327
- some fixes on yesterdays update
3328
 
3329
04/03/2006
3330
- added registerDefaultTemplateHandler method and functionallity
3331
- added registerDefaultPluginHandler method and functionallity
3332
- added {append} tag to extend Smarty array variabled
3333
 
3334
04/02/2009
3335
- added setter/getter methods
3336
- added $foo@first and $foo@last properties at {for} tag
3337
- added $set_timezone (true/false) property to setup optionally the default time zone
3338
 
3339
03/31/2009
3340
- bugfix smarty.class and internal.security_handler
3341
- added compile_check configuration
3342
- added setter/getter methods
3343
 
3344
03/30/2009
3345
- added all major setter/getter methods
3346
 
3347
03/28/2009
3348
- {block} tags can be nested now
3349
- md5 hash function replace with crc32 for speed optimization
3350
- file order for exted resource inverted
3351
- clear_compiled_tpl and clear_cache_all will not touch .svn folder any longer
3352
 
3353
03/27/2009
3354
- added extend resource
3355
 
3356
03/26/2009
3357
- fixed parser not to create error on `word` in double quoted strings
3358
- allow PHP  array(...)
3359
- implemented  $smarty.block.name.parent to access parent block content
3360
- fixed smarty.class
3361
 
3362
 
3363
03/23/2009
3364
- fixed {foreachelse} and {forelse} tags
3365
 
3366
03/22/2009
3367
- fixed possible sources for notice errors
3368
- rearrange SVN into distribution and development folders
3369
 
3370
03/21/2009
3371
- fixed exceptions in function plugins
3372
- fixed notice error in Smarty.class.php
3373
- allow chained objects to span multiple lines
3374
- fixed error in modifiers
3375
 
3376
03/20/2009
3377
- moved /plugins folder into /libs folder
3378
- added noprint modifier
3379
- autoappend a directory separator if the xxxxx_dir definition have no trailing one
3380
 
3381
03/19/2009
3382
- allow array definition as modifier parameter
3383
- changed modifier to use multi byte string funktions.
3384
 
3385
03/17/2009
3386
- bugfix
3387
 
3388
03/15/2009
3389
- added {include_php} tag for BC
3390
- removed @ error suppression
3391
- bugfix fetch did always repeat output of first call when calling same template several times
3392
- PHPunit tests extended
3393
 
3394
03/13/2009
3395
- changed block syntax to be Smarty like  {block:titel} -> {block name=titel}
3396
- compiling of {block} and {extend} tags rewriten for better performance
3397
- added special Smarty variable block  ($smarty.block.foo} returns the parent definition of block foo
3398
- optimization of {block} tag compiled code.
3399
- fixed problem with escaped double quotes in double quoted strings
3400
 
3401
03/12/2009
3402
- added support of template inheritance by {extend } and {block } tags.
3403
- bugfix comments within literals
3404
- added scope attribuie to {include} tag
3405
 
3406
03/10/2009
3407
- couple of bugfixes and improvements
3408
- PHPunit tests extended
3409
 
3410
03/09/2009
3411
- added support for global template vars.  {assign_global...}  $smarty->assign_global(...)
3412
- added direct_access_security
3413
- PHPunit tests extended
3414
- added missing {if} tag conditions like "is div by" etc.
3415
 
3416
03/08/2009
3417
- splitted up the Compiler class to make it easier to use a coustom compiler
3418
- made default plugins_dir relative to Smarty root and not current working directory
3419
- some changes to make the lexer parser better configurable
3420
- implemented {section} tag for Smarty2 BC
3421
 
3422
03/07/2009
3423
- fixed problem with comment tags
3424
- fixed problem with #xxxx in double quoted string
3425
- new {while} tag implemented
3426
- made lexer and paser class configurable as $smarty property
3427
- Smarty method get_template_vars implemented
3428
- Smarty method get_registered_object implemented
3429
- Smarty method trigger_error implemented
3430
- PHPunit tests extended
3431
 
3432
03/06/2009
3433
- final changes on config variable handling
3434
- parser change - unquoted strings will by be converted into single quoted strings
3435
- PHPunit tests extended
3436
- some code cleanup
3437
- fixed problem on catenate strings with expression
3438
- update of count_words modifier
3439
- bugfix on comment tags
3440
 
3441
 
3442
03/05/2009
3443
- bugfix on <?xml...> tag with caching enabled
3444
- changes on exception handling (by Monte)
3445
 
3446
03/04/2009
3447
- added support for config variables
3448
- bugfix on <?xml...> tag
3449
 
3450
03/02/2009
3451
- fixed unqouted strings within modifier parameter
3452
- bugfix parsing of mofifier parameter
3453
 
3454
03/01/2009
3455
- modifier chaining works now as in Smarty2
3456
 
3457
02/28/2009
3458
- changed handling of unqouted strings
3459
 
3460
02/26/2009
3461
- bugfix
3462
- changed $smarty.capture.foo to be global for Smarty2 BC.
3463
 
3464
02/24/2009
3465
- bugfix {php} {/php} tags for backward compatibility
3466
- bugfix for expressions on arrays
3467
- fixed usage of "null" value
3468
- added $smarty.foreach.foo.first and $smarty.foreach.foo.last
3469
 
3470
02/06/2009
3471
- bugfix for request variables without index  for example $smarty.get
3472
- experimental solution for variable functions in static class
3473
 
3474
02/05/2009
3475
- update of popup plugin
3476
- added config variables to template parser (load config functions still missing)
3477
- parser bugfix for empty quoted strings
3478
 
3479
02/03/2009
3480
- allow array of objects as static class variabales.
3481
- use htmlentities at source output at template errors.
3482
 
3483
02/02/2009
3484
- changed search order on modifiers to look at plugins folder first
3485
- parser bug fix for modifier on array elements  $foo.bar|modifier
3486
- parser bug fix on single quoted srings
3487
- internal: splitted up compiler plugin files
3488
 
3489
02/01/2009
3490
- allow method chaining on static classes
3491
- special Smarty variables  $smarty.... implemented
3492
- added {PHP} {/PHP} tags for backward compatibility
3493
 
3494
01/31/2009
3495
- added {math} plugin for Smarty2 BC
3496
- added template_exists method
3497
- changed Smarty3 method enable_security() to enableSecurity() to follow camelCase standards
3498
 
3499
01/30/2009
3500
- bugfix in single quoted strings
3501
- changed syntax for variable property access from $foo:property to $foo@property because of ambiguous syntax at modifiers
3502
 
3503
01/29/2009
3504
- syntax for array definition changed from (1,2,3) to [1,2,3] to remove ambiguous syntax
3505
- allow  {for $foo in [1,2,3]} syntax
3506
- bugfix in double quoted strings
3507
- allow <?xml...?> tags in template even if short_tags are enabled
3508
 
3509
01/28/2009
3510
- fixed '!==' if condition.
3511
 
3512
01/28/2009
3513
- added support of {strip} {/strip} tag.
3514
 
3515
01/27/2009
3516
- bug fix on backticks in double quoted strings at objects
3517
 
3518
01/25/2009
3519
- Smarty2 modfiers added to SVN
3520
 
3521
01/25/2009
3522
- bugfix allow arrays at object properties in Smarty syntax
3523
- the template object is now passed as additional parameter at plugin calls
3524
- clear_compiled_tpl method completed
3525
 
3526
01/20/2009
3527
- access to class constants implemented  ( class::CONSTANT )
3528
- access to static class variables implemented ( class::$variable )
3529
- call of static class methods implemented ( class::method() )
3530
 
3531
01/16/2009
3532
- reallow leading _ in variable names  {$_var}
3533
- allow array of objects  {$array.index->method()} syntax
3534
- finished work on clear_cache and clear_cache_all methods
3535
 
3536
01/11/2009
3537
- added support of {literal} tag
3538
- added support of {ldelim} and {rdelim} tags
3539
- make code compatible to run with E_STRICT error setting
3540
 
3541
01/08/2009
3542
- moved clear_assign and clear_all_assign to internal.templatebase.php
3543
- added assign_by_ref, append and append_by_ref methods
3544
 
3545
01/02/2009
3546
- added load_filter method
3547
- fished work on filter handling
3548
- optimization of plugin loading
3549
 
3550
12/30/2008
3551
- added compiler support of registered object
3552
- added backtick support in doubled quoted strings for backward compatibility
3553
- some minor bug fixes and improvments
3554
 
3555
12/23/2008
3556
- fixed problem of not working "not" operator in if-expressions
3557
- added handling of compiler function plugins
3558
- finished work on (un)register_compiler_function method
3559
- finished work on (un)register_modifier method
3560
- plugin handling from plugins folder changed for modifier plugins
3561
  deleted - internal.modifier.php
3562
- added modifier chaining to parser
3563
 
3564
12/17/2008
3565
- finished (un)register_function method
3566
- finished (un)register_block method
3567
- added security checking for PHP functions in PHP templates
3568
- plugin handling from plugins folder rewritten
3569
  new - internal.plugin_handler.php
3570
  deleted - internal.block.php
3571
  deleted - internal.function.php
3572
- removed plugin checking from security handler
3573
 
3574
12/16/2008
3575
 
3576
- new start of this change_log file