summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2026-05-20Suppress E_DEPRECATED warnings for PHP 8.x compatibilityHEADmasterLester Caine4-6/+6
- Debug.php, Smarty.php: add ~E_DEPRECATED to error_reporting masks - DefaultExtension.php: comment out trigger_error for implode deprecation - libs/Smarty.class.php: minor style cleanup (require_once without parens) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20Replace deprecated strftime() with IntlDateFormatter in HtmlSelectDateLester Caine1-4/+10
strftime() was removed in PHP 8.2; use IntlDateFormatter('en_GB') with a regex to extract the month name, for PHP 8.5 compatibility. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20Merge remote-tracking branch 'upstream/master'Lester Caine1-1/+1
2026-05-16fix: return type (#1180)Masatoshi Ogiwara1-1/+1
2026-05-09Merge pull request #2 from smarty-php/masterLester Caine357-1200/+310
Sync with master
2026-05-03update todosSimon Wisselink1-4/+4
2026-05-03Remove incomplete test cases for usesCompiler across multiple test filesSimon Wisselink6-69/+37
2026-04-13Re-activate unit tests for user literals.Simon Wisselink3-6/+2
2026-04-13Redirect test temp dirs to system temp directorySimon Wisselink353-1121/+192
* Redirect test temp dirs to system temp directory. Fixes #1178 Move all test-generated output (compiled templates, cache files, and temporary template sources) from per-test-directory folders inside the working tree to a parallel structure under sys_get_temp_dir()/smarty-tests/. This removes 215 boilerplate .gitignore files from the repo and ensures running the test suite leaves zero uncommitted files in the working tree. All 2296 tests continue to pass with identical behavior. * Isolate each test class in a unique temp directory getTempDir() now appends a per-class uniqid token to the temp path, so concurrent or sequential test runs never share compiled/cached output. The token is generated lazily on first use and reset in tearDownAfterClass(), giving every test class a fresh isolated directory. As a result, the Bootstrap.php pre-run cleanup of smarty-tests/ is no longer needed for correctness (stale paths are unreachable) and was harmful to concurrent runs, so it has been removed. * Remove individualFolders dead code and spurious assertTrue from cleanDirs() - Remove the never-active individualFolders code path from setUpSmarty() (the constant was always true, making the branch unreachable) - Remove define('individualFolders') from Config.php and the constructor - Remove $this->assertTrue(true) from cleanDirs(): it existed solely to make testInit() count as a passing test; now that cleanDirs() is called from setUpSmarty() and from test methods directly, the assertion was spuriously inflating assertion counts - Add tests/**/templates_c/, cache/, templates_tmp/ to .gitignore to prevent stale test output from appearing as untracked files * Clean up each test class's unique temp dir in tearDownAfterClass() Add a private static removeDir() helper and call it from tearDownAfterClass() to recursively delete the per-class unique temp directory after each test class finishes. Cleanup failures are silently ignored (@ suppression) so they never cause test failures. Set KEEP_SMARTY_TEST_ARTIFACTS=1 in the environment to skip cleanup and keep the artifacts on disk for debugging. * cleanup of unused template files, non-shared files stored in __shared folder, no longer required calls to add template folders et cetera * fixed the unit tests * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * remove useless resetting of static properties in tearDownAfterClass * changed an incorrect doc and formatted some code. * add changelog --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-10Added AGENTS.md for improved vibe coding experienceSimon Wisselink1-0/+75
2026-03-09Merge pull request #1 from smarty-php/masterLester Caine34-1418/+2394
Pull up to Smarty 8.5
2026-02-15Merge branch 'release/5.8.0'Simon Wisselink6-5/+8
2026-02-15version bumpSimon Wisselink6-5/+8
2026-02-15changelogsSimon Wisselink2-0/+2
2026-02-15Add support for Backed Enums (#1171)Simon Wisselink7-571/+823
* Add support for Backed Enums Fixes #1012 Also added docs (and docs for matches operator)
2026-02-15Regex matches operator (#1169)Simon Wisselink5-1137/+1326
* Regex matches operator support
2026-02-11Support for Laravel Collections style object chaining (#1168)Simon Wisselink6-735/+971
* Support for Laravel Collections style object chaining for objects return from function calls implemented as modifiers Fixes #1151 * explain publishing docs
2026-01-08Fix static analysis warnings for isDot() and remove deprecated APC support ↵hirosan7-157/+6
(#1164) * Fix static analysis warnings for isDot() * Remove deprecated APC support * Remove redundant isDot() check and fix static analysis warnings
2025-12-21Document missing inline implementation. Fixed #1152 (#1156)Simon Wisselink2-5/+8
2025-11-19Merge branch 'release/5.7.0'Simon Wisselink3-2/+5
2025-11-19version bumpSimon Wisselink3-2/+5
2025-11-19Php8.5 support (#1138)Simon Wisselink5-2/+14
* PHP 8.5 support (using RC docker image for php 8.5 unit tests)
2025-10-17Non-canonical cast (boolean) fix (#1145)Wim Wisselink1-1/+1
2025-10-03Merge branch 'release/5.6.0'Simon Wisselink3-2/+5
2025-10-03version bumpSimon Wisselink3-2/+5
2025-10-03added changelogSimon Wisselink1-0/+1
2025-10-03Add support for shorttags in functions (#1142)pharixces7-91/+514
* Add support for shorttags in functions Co-authored-by: Anne Zijlstra <a.zijlstra@iwink.nl> Co-authored-by: Simon Wisselink <s.wisselink@iwink.nl>
2025-08-26Merge branch 'release/5.5.2'v5.5.2Simon Wisselink2-1/+4
2025-08-26version bumpSimon Wisselink2-1/+4
2025-08-26Fixed escaping of array/object keys in debug_print_varSimon Wisselink2-2/+4
2025-05-27Add iWink and Temma logosSimon Wisselink4-1/+110
2025-05-19Merge branch 'release/5.5.1'v5.5.1Simon Wisselink3-2/+5
2025-05-19version bumpSimon Wisselink3-2/+5
2025-05-19changelogSimon Wisselink1-0/+1
2025-05-19Bugfix/bcpluginsadapter support modifiercompiler (#1132)pharixces1-2/+2
* Add support for modifiercompiler in the BCPluginsAdapter class. --------- Co-authored-by: Anne Zijlstra <a.zijlstra@iwink.nl>
2025-05-06add empty and in_array modifier doc (#1113)Shad3-0/+29
2025-05-03Merge branch 'release/5.5.0'v5.5.0Simon Wisselink3-2/+5
2025-05-03version bumpSimon Wisselink3-2/+5
2025-05-03changelogSimon Wisselink1-0/+1
2025-05-03Support trailing comma in array (#1128)hirosan3-238/+251
2025-04-16Update getting-started.md (#1111)hirosan1-1/+1
Indicate support for php8.4 in docs.
2025-04-15Merge branch 'release/5.4.5'v5.4.5Simon Wisselink3-2/+5
2025-04-15version bumpSimon Wisselink3-2/+5
2025-04-15changelogSimon Wisselink1-0/+1
2025-04-15Update StringEval.php (#1126)gherosh1-1/+1
Fix: Implicitly marking parameter $_template as nullable is deprecated, the explicit nullable type must be used instead
2025-04-13Added sponsorSimon Wisselink1-0/+7
2025-04-13Drop jit runs from CI unit tests.Simon Wisselink1-21/+0
Fixes #1125
2025-04-13Merge branch 'release/5.4.4'v5.4.4Simon Wisselink4-3/+6
2025-04-13version bumpSimon Wisselink4-3/+6
2025-04-10Fix syntax error occurring when registering a function plugin that ends with ↵Simon Wisselink3-6/+16
the string 'close' (#1124) Fixes #1122