summaryrefslogtreecommitdiff
path: root/changelog
AgeCommit message (Collapse)AuthorFilesLines
2026-04-13Re-activate unit tests for user literals.Simon Wisselink1-0/+1
2026-04-13Redirect test temp dirs to system temp directorySimon Wisselink1-0/+1
* 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-02-15version bumpSimon Wisselink4-4/+0
2026-02-15changelogsSimon Wisselink2-0/+2
2026-02-11Support for Laravel Collections style object chaining (#1168)Simon Wisselink1-0/+1
* Support for Laravel Collections style object chaining for objects return from function calls implemented as modifiers Fixes #1151 * explain publishing docs
2025-12-21Document missing inline implementation. Fixed #1152 (#1156)Simon Wisselink1-0/+1
2025-11-19version bumpSimon Wisselink1-1/+0
2025-11-19Php8.5 support (#1138)Simon Wisselink1-0/+1
* PHP 8.5 support (using RC docker image for php 8.5 unit tests)
2025-10-03version bumpSimon Wisselink1-1/+0
2025-10-03added changelogSimon Wisselink1-0/+1
2025-05-19version bumpSimon Wisselink1-1/+0
2025-05-19changelogSimon Wisselink1-0/+1
2025-05-03version bumpSimon Wisselink1-1/+0
2025-05-03changelogSimon Wisselink1-0/+1
2025-04-15version bumpSimon Wisselink1-1/+0
2025-04-15changelogSimon Wisselink1-0/+1
2025-04-13version bumpSimon Wisselink2-2/+0
2025-04-10Fix syntax error occurring when registering a function plugin that ends with ↵Simon Wisselink1-0/+1
the string 'close' (#1124) Fixes #1122
2024-12-28change SMARTY_VERSION to $smarty.version.Simon Wisselink1-0/+1
Fixes #1073
2024-12-23version bumpSimon Wisselink1-1/+0
2024-11-20replace/qualify call_user_func_array. (#1083)Simon Wisselink1-0/+1
Fixes #1074
2024-08-14version bumpSimon Wisselink2-2/+0
2024-08-14changelogSimon Wisselink1-0/+1
2024-06-30Improvement of auto-escaping (#1030)Amaury Bouchard1-0/+1
* Evolution of auto-escaping: no double-escaping when using the 'escape' modifier; add the 'force' mode to the 'escape' modifier; add the 'raw' modifier. * Add 'raw' modifier's documentation --------- Co-authored-by: Simon Wisselink <s.wisselink@iwink.nl>
2024-06-16version bumpSimon Wisselink1-1/+0
2024-06-16fixed error when using section with nocache.Simon Wisselink1-0/+1
Fixes #1034
2024-05-30version bumpSimon Wisselink2-2/+0
2024-05-30Merge branch 'support/5'Simon Wisselink1-0/+1
2024-05-29implemented and documented prependTemplateDir. (#1025)Simon Wisselink1-0/+1
2024-05-28version bumpSimon Wisselink2-3/+0
2024-05-28Merge pull request from GHSA-4rmg-292m-wg3wSimon Wisselink1-0/+2
2024-05-24Scottchiefbaker/master (#1019)Simon Wisselink1-0/+1
* Add a PSR-4 loading script to allow Smarty to be used without Composer authored-by: Scott Baker <scott@perturb.org>
2024-04-23version bumpSimon Wisselink7-8/+0
2024-04-19Prevent notices on null to string conversion in Template::appendCode (#1002)Simon Wisselink1-0/+1
Fixes #996
2024-04-19Corrected invalid classnames in Runtime code for foreach (#1001)Simon Wisselink1-0/+1
Fixes #1000
2024-04-13Fix change in signature of getTemplateVars (#995)Simon Wisselink1-0/+1
2024-04-05Fix Smarty::assign() not returning when called with an array as first ↵Simon Wisselink1-0/+1
parameter. (#973) Fixes #972
2024-04-05version bumpSimon Wisselink1-1/+0
2024-03-29Fix warning when calling hasVariable for an undefined variable (#978)Simon Wisselink1-0/+1
Fixes #977
2024-03-28version bumpSimon Wisselink1-1/+0
2024-03-28Fix Smarty::assign() not returning when called with an array as first ↵Simon Wisselink1-0/+1
parameter. (#973) Fixes #972
2024-03-27version bumpSimon Wisselink1-1/+0
2024-03-27Fix missing and bogus use lines in src/Smarty.php. (#970)Simon Wisselink1-0/+1
2024-03-27Fix missing and bogus use lines in src/Smarty.php. (#970)Simon Wisselink1-0/+1
2024-03-25Documented support for `is in`, added support for `is not in`. (#955)Simon Wisselink1-0/+2
* Documented support for `is in`, added support for `is not in`. Fixes #937 * minor docs improvement
2024-03-25changelog entry for depcreated stream variablesSimon Wisselink1-0/+1
2024-03-25Internal compiler classes always return a string (#918)Simon Wisselink1-0/+1
* Internal compiler classes always return a string (the internal has_code flag has been removed for simplicity) * Add :string method signature to compile method everywhere.
2024-03-25version bumpSimon Wisselink1-2/+0
2024-03-15Fixed that scoped variables would overwrite parent scope. (#954)Simon Wisselink1-0/+2
* Fixed that scoped variables would overwrite parent scope. Fixes #952 * Moved variable stack maintenance to methods and private properties in Data class.
2024-02-26fix release tooling to auto-delete changelog filesSimon Wisselink3-3/+0