uwetews
a0f583078d
- minor optimizations
2015-10-29 21:41:21 +01:00
uwetews
888014b908
- new extension handler to load functions when called
2015-10-24 05:02:24 +02:00
uwetews
bf6910ee21
- bugfix under HHVM temporary cache file must only be created when caches template was updated
2015-10-18 05:08:03 +02:00
uwetews
4776491a7f
- bugfix under HHVM temporary cache file must only be created when caches template was updated
2015-10-18 04:58:53 +02:00
Uwe Tews
643e6784e8
- bugfix Smarty failed when compile_id did contain "|"
2015-08-06 21:42:20 +02:00
Uwe Tews
f2585a035c
- rework clear cache methods
2015-08-03 05:40:34 +02:00
Uwe Tews
f9d9ca0f67
- improvement impement workaround for HHVM PHP incompatibillity https://github.com/facebook/hhvm/issues/4797
2015-07-26 18:04:40 +02:00
Uwe Tews
8cbe51a603
- improvement invalidate PHP 5.5 opcache for recompiled and cached templates https://github.com/smarty-php/smarty/issues/72
2015-07-20 04:01:43 +02:00
Uwe Tews
b64d5d26c9
- update realpath handling
2015-06-21 13:53:52 +02:00
Uwe Tews
af08353e93
- bugfix/improvement in 3.1.22-dev cache locking did not work as expected
2015-05-06 23:10:39 +02:00
Uwe Tews
c5915a8c0c
- improvement use is_file() checks to avoid errors suppressed by @ which could still cause problems ( https://github.com/smarty-php/smarty/issues/24 )
2015-05-05 00:41:30 +02:00
Uwe Tews
8d5fa36a80
- bugfix clearCompiledTemplates(), clearAll() and clear() could try to delete whole drive
...
at wrong path permissions because realpath() fail (forum 25397)
2015-01-21 22:14:25 +01:00
Uwe Tews
85f24ce413
convert writeFile() to object method to remove a vulnerability
2015-01-21 21:12:00 +01:00
Uwe Tews
adc6091c4d
update of cache resources for template function calls in nocache mode
2014-11-09 10:20:06 +01:00
monte.ohrt
fcece85062
fix issue where cache dir does not exist
...
-This line, and those below, will be ignored--
M distribution/libs/sysplugins/smarty_internal_cacheresource_file.php
2014-07-24 15:08:32 +00:00
Uwe.Tews@googlemail.com
425091a19f
- fixed spelling, PHPDoc , minor errors, code cleanup
2014-06-06 02:40:04 +00:00
Uwe.Tews@googlemail.com
3d4d35f4d7
- bugfix clearXxx() change of 27.1.2014 did not work when specifing cache_id or compile_id (forum topic 24868 and 24867)
2014-03-13 20:32:39 +00:00
Uwe.Tews@googlemail.com
ba2996fef5
- bugfix clearCompiledTemplate(), clearAll() and clear() should use realpath to avoid possible exception from RecursiveDirectoryIterator (Issue 171)
2014-01-27 16:35:56 +00:00
Uwe.Tews@googlemail.com
00ccae8857
- update for PHP 5.4 compatibility
...
- reformat source to PSR-2 standard
2013-07-14 22:15:45 +00:00
Uwe.Tews@googlemail.com
00c034b593
- enhancement an expire_time of -1 in clearCache() and clearAllCache() will delete outdated cache files
...
by their individual cache_lifetime used at creation (forum topic 24310)
2013-05-26 10:50:13 +00:00
rodneyrehm
b977381e4e
bugfix PHP5.2 compatibility compromised by SplFileInfo::getBasename() (Issue 110)
2012-08-14 13:22:34 +00:00
uwe.tews@googlemail.com
8c3bcf9eef
- bugfix concurrent cache updates could create a warning (Forum Topic 21403)
2012-04-12 16:55:35 +00:00
rodneyrehm
7659c6c0ea
- add Smarty::$allow_ambiguous_resources to activate unique resource handling (Forum Topic 20128)
...
see http://www.smarty.net/forums/viewtopic.php?t=20128
2011-10-21 18:40:16 +00:00
rodneyrehm
6baca38bf1
- improvement sha1() for array keys longer than 150 characters
2011-10-21 12:10:41 +00:00
rodneyrehm
6470e6a2c9
- improvement removed unnecessary sha1()
...
(and added previously forgotten templates for ClearCompileTests)
2011-10-20 20:28:21 +00:00
rodneyrehm
94dff13c89
removing todos
2011-10-13 13:41:59 +00:00
rodneyrehm
6979b4efb0
- add concept unique_resource to combat potentially ambiguous template_resource values when custom resource handlers are used (Forum Topic 2012)
...
http://www.smarty.net/forums/viewtopic.php?t=2012
thereby DRYed and optimized the resource handler identification method.
2011-10-13 13:10:06 +00:00
uwe.tews@googlemail.com
12e8593760
- improvement add internal $joined_template_dir property instead computing it on the fly several times
2011-10-03 19:02:44 +00:00
rodneyrehm
d0228e96ea
- removed internal muteExpectedErrors() calls in favor of having the implementor call this once from his application
...
- optimized muteExpectedErrors() to pass errors to the latest registered error handler, if appliccable
error muting is now a global thing. this was done because of the overhead set_error_handler imposes and the fact, that only a few people really "need" this.
The decision was made by uwe.tews and rodneyrehm. (just in case anyone asks…)
2011-09-24 12:56:52 +00:00
uwe.tews@googlemail.com
537285032c
- bugfix error muting was not implemented for cache locking
2011-09-23 22:27:44 +00:00
rodneyrehm
7a6b9dba91
- added $error_muting to suppress error messages even for badly implemented error_handlers
...
- reverted r4301
2011-09-21 22:02:54 +00:00
uwe.tews@googlemail.com
a44d9a6ac9
- bugfix template caching did not care about file.tpl in different template_dir
...
- bugfix {include $file} was broken when merge_compiled_incluges = true
- bugfix {include} was broken when merge_compiled_incluges = true and same indluded template
was used in different main templates in one compilation run
2011-09-18 02:31:58 +00:00
rodneyrehm
c9be9cd7f9
- bugfix lock_id for file resource would create invalid filepath
...
- bugfix resource caching did not care about file.tpl in different template_dir
- added svn:ignore where necessary
2011-09-17 16:29:10 +00:00
monte.ohrt
8842e79107
commit 3.1 into the trunk
2011-09-16 14:19:56 +00:00
uwe.tews@googlemail.com
34d5029469
- bugfix $smarty->clearCache('some.tpl') did by mistake cache the template object
2011-02-24 15:28:03 +00:00
uwe.tews@googlemail.com
0e863c651d
-improvement not to delete files starting with '.' from cache and template_c folders on clearCompiledTemplate() and clearCache()
2011-02-17 15:43:37 +00:00
uwe.tews@googlemail.com
147c5d0631
- bugfix on output buffer handling in isCached() method
2010-10-13 23:22:57 +00:00
uwe.tews@googlemail.com
415d2f43e2
- added {break} and {continue} tags for flow control of {foreach},{section},{for} and {while} loops
...
- change of 'string' resource. It's no longer evaluated and compiled files are now stored
- new 'eval' resource which evaluates a template without saving the compiled file
- change in isCached() method to allow multiple calls for the same template
2010-10-01 13:19:53 +00:00
Uwe.Tews
f7fd63e890
- improved speed of cache->clear() when a compile_id was specified and use_sub_dirs is true
2010-06-21 20:10:22 +00:00
Uwe.Tews
4e27b70ba5
- bugfix in $smarty->cache->clear() method. (do not cache template object)
2010-04-27 17:47:24 +00:00
Uwe.Tews
d89e53c2f6
- bugfix make $smarty->cache->clear() function independent from caching status
2010-03-17 17:37:32 +00:00
Uwe.Tews
9f5d885835
- avoid possible notice on $smarty->cache->clear(...), $smarty->clear_cache(....)
2010-02-10 18:00:41 +00:00
Uwe.Tews
24141e81dd
- bugfix use template fullpath at §smarty->cache->clear(...), $smarty->clear_cache(....)
2010-02-08 21:04:43 +00:00
Uwe.Tews
d287c6b1d9
- bugfix sha1() calculations at extends resource and some general improvments on sha1() handling
2010-01-05 21:10:25 +00:00
Uwe.Tews
4519218f04
- update cached_timestamp at the template object after cache file is written to avoid possible side effects
...
- use internally always SMARTY_CACHING_LIFETIME_* constants
2010-01-02 12:15:04 +00:00
Uwe.Tews
67641b63e8
- fixed cache filename for custom resources
2009-12-29 23:46:31 +00:00
Uwe.Tews
d1969d6f56
- use sha1() for filepath encoding
...
- updates on nocache_hash handling
2009-12-29 20:12:11 +00:00
Uwe.Tews
36da15cee8
- update of getCachedTimestamp()
2009-12-27 19:12:51 +00:00
Uwe.Tews
44dd7830dd
--- this is a major update with a couple of internal changes ---
...
- new config file lexer/parser (thanks to Thue Jnaus Kristensen)
- template lexer/parser fixes for PHP and {literal} handing (thanks to Thue Jnaus Kristensen)
- fix on registered plugins with different type but same name
- rewrite of plugin handling (optimized execution speed)
- closed a security hole regarding PHP code injection into cache files
- fixed bug in clear cache handling
- Renamed a couple of internal classes
- code cleanup for merging compiled templates
- couple of runtime optimizations (still not all done)
2009-12-27 15:06:49 +00:00
Uwe.Tews
aaa7b8f245
- bugfix of parent/global variable update at included/merged subtemplates
...
- encode final template filepath into filename of compiled and cached files
2009-12-17 16:58:44 +00:00