Simon Wisselink
165f1bd4d2
Fixed Code injection vulnerability by using illegal function names
2021-01-24 23:44:07 +01:00
Simon Wisselink
6463519a6c
Prevent access to .template_object when in security mode to prevent PHP code injection vulnerability
2021-01-24 23:13:26 +01:00
Simon Wisselink
fedc127057
Mark tests that use sleep calls as slow, so we can ignore them when running unit tests in development
2021-01-16 23:01:15 +01:00
Ikko Ashimine
3af2df20a4
Fix typo in StreamVariableTest.php ( #616 )
...
existant -> existent
2021-01-08 17:28:33 +01:00
Simon Wisselink
63b3c0aed0
Merge branch 'release/3.1.38'
v3.1.38
2021-01-08 15:05:42 +01:00
Simon Wisselink
2af2a07906
version bump
2021-01-08 15:05:40 +01:00
Simon Wisselink
cb4254355e
Removed unused error_reporting.ini file, updated version number in Smarty::SMARTY_VERSION, fixed inline phpdoc that caused an IDE error
2021-01-08 15:05:10 +01:00
Simon Wisselink
f65e7ddd22
fixed changelog
v3.1.37.1
2021-01-07 00:34:08 +01:00
Simon Wisselink
92e05d4f8d
Brought lexer source functionally up-to-date with compiled version ( #625 )
...
Fixes #621
v3.1.37
2021-01-07 00:26:28 +01:00
Simon Wisselink
e2b28167f8
Clarify correct LGPL version.
...
Fixes #612
2021-01-05 22:23:13 +01:00
Libor M
820782cd80
const fix for usage with comparison operators ( #618 )
...
Fixes #609 #613
2021-01-05 22:07:44 +01:00
Simon Wisselink
c295786e43
Fixes for php8.0.0beta3 ( #608 )
...
* Set $errcontext argument optional to support PHP 8
- Argument is optional and deprecated in PHP 7.2
* Getting ready for PHP8, handling changed error levels/handlers mostly
* php5 compat syntax
* Updated UndefinedTemplateVarTest for PHP8 (and disabled a check for PHP<5.6) and re-enabled php:nightly in travis config
* Attempt to fix travis runs for (almost) all php versions supported
* Fix unit tests for php8, force composer to think we are still php7 to pick a supported phpunit and being less specific about an error msg because PHP8 is in active development and the exact wording is changing.
* Fixed a unit test that accidentally passed on phpunit < 7 because of sloppy string comparison.
* changelog
* run travis in xenial where possible for latest php versions. Fix unit tests from freakingo over inconsistent error messages in php8-beta.
* Incorporated AnrDaemons suggestions, making composer figure out the required phpunit version instead of specifying it explicitly and removing a unneeded error supression (@).
Co-authored-by: Jorge Sá Pereira <me@jorgesapereira.com >
2020-09-12 21:37:31 +02:00
♚ PH⑦ de Soria™♛
859a09e1bb
Bumped phpdoc @version tag to 3.1.36 ( #598 )
...
Although this could be removed, since the header comment is still there, it's good to keep the @version tag updated in order to avoid confusion for those who read it :)
2020-09-11 13:34:15 +02:00
Simon Wisselink
a5934a755d
Fixed a unit test that accidentally passed on phpunit < 7 because of sloppy string comparison.
2020-09-11 13:22:45 +02:00
Stoll, Jonathan
dff1955cd5
Update to HTML5-syntax in debug template
...
* Replace deprecated tags
* Use CSS3 selectors
* Update html-frame
* Remove deprecated syntax
* Harmonize syntax in general
2020-06-19 21:20:46 +02:00
Simon Wisselink
5a72624380
Test travis config for PHP5 versions ( #592 )
...
* Run tests for PHP5.x
* Start from 5.3 since composer requires it and without it we cannot install phpunit
* Specify dist for 5.3
* Disabled nightly testing because phpunit doesn't support php8 yet.
2020-05-05 15:08:31 +02:00
Simon Wisselink
1418c8c422
Merge branch 'AnrDaemon-fix-php5.3-compat'
2020-05-05 09:21:07 +02:00
Simon Wisselink
f46c13b32a
Updated changelog
2020-05-05 09:20:56 +02:00
AnrDaemon
eae19f23b9
PHP 5.3 compatibility fixes
2020-05-05 01:37:36 +03:00
Sławomir Kaleta
e1c050a32c
Fix comment - Method can return string ( #583 )
2020-04-14 17:26:20 +02:00
Simon Wisselink
fd148f7ade
Merge branch 'release/3.1.36'
v3.1.36
2020-04-14 16:44:26 +02:00
Simon Wisselink
07772aac90
version bump
2020-04-14 16:44:24 +02:00
Simon Wisselink
08227651fc
Fixed #584
2020-04-14 16:44:09 +02:00
Simon Wisselink
e0ea6899c8
fixed version of Smarty::SMARTY_VERSION and updates make-release script to do so automatically from now on
2020-04-14 16:40:44 +02:00
Simon Wisselink
97f700971f
Merge branch 'release/3.1.35'
v3.1.35
2020-04-14 00:02:48 +02:00
Simon Wisselink
a0abc47588
version bump
2020-04-14 00:02:39 +02:00
Simon Wisselink
728a584ad5
Moved changelog to a keepachangelog.com format and added a release script
2020-04-14 00:02:18 +02:00
Simon Wisselink
290f7cfc3d
Moved the isset tests into the test suite
2020-04-13 23:44:39 +02:00
Simon Wisselink
48d24b7ad1
Fix repo layout for package maintainers ( #571 )
...
* Do not ignore lexer subfolder for export as this contains source files and add smarty-lexer as a composer dev-dependency.
* Remove unit tests etc from archive export
Please note that the generated lexer / parser classes are not exactly equivalent, as they have been editing to conform to coding standards afterwards. I did a quick review and there don't seem to be any differences in semantics though.
2020-04-13 22:32:23 +02:00
Simon Wisselink
19ef8342aa
Strip now removes whitespaces after comment ( #582 )
...
* Mark text sections as to be stripped, but do not strip them right away. Combine equivalent sections in chunks at the template level and strip combined chunks where possible.
- simplified Smarty_Internal_TemplateCompilerBase::processText along the way
Fixes #447
2020-04-13 22:27:42 +02:00
Simon Wisselink
4f89f6d84f
Throw SmartyException when setting caching attributes for cacheable plugin as compiling this would fail ( #573 )
...
Fixes #457
2020-04-13 22:26:24 +02:00
Simon Wisselink
4396351d75
Switched to a more advanced regex to test wheter parameter is a variable ( #567 )
...
* This appears to fix #453 , #498 , #499 and possibly more issues.
2020-04-13 22:24:29 +02:00
Simon Wisselink
17d4d43624
Feature/merge smarty-phpunit into tests subfolder ( #580 )
...
* Removed unneeded files and replace dummy.txt with .gitignore files
* Synced unit tests with master codebase, noted TODO's, fixed phpunit scripts and travis config
* fix php7.4 deprecation and remove php7.4 from travis allow_failures since php7.4 is current stable
Co-authored-by: Uwe Tews <uwe.tews@googlemail.com >
Co-authored-by: Uwe Tews <uwe.tews@gmail.com >
Co-authored-by: AnrDaemon <anrdaemon@yandex.ru >
2020-04-13 15:30:52 +02:00
Simon Wisselink
61e7412807
Merge pull request #570 from vadimkuragkovskiy/master
...
fix minor typo
2020-04-12 11:41:22 +02:00
Vadim Kuragkovskiy
38b5ac72fa
fix minor typo
2020-02-07 18:56:25 +02:00
Simon Wisselink
4b29dfce11
Merge pull request #566 from smarty-php/bugfix/506_foreachelse_on_arrayiterators
...
Bugfix/506 foreachelse on arrayiterators
2020-01-27 16:08:35 +01:00
Simon Wisselink
e0df3d47e2
Ignore templates_c dir
2020-01-27 16:04:04 +01:00
Simon Wisselink
62d772e734
Fixed broken nesting and null handling.
2020-01-27 16:02:02 +01:00
Simon Wisselink
388993e9ca
Fix foreachelse on arrayiterators
...
Keep track of main loop using a do_else variable.
Fixed #506
2020-01-27 15:24:45 +01:00
Simon Wisselink
97c27a0f2f
Merge pull request #503 from SeahunOh/master
...
fix typo
2020-01-26 23:49:57 +01:00
Monte Ohrt
b2ecd98ae0
update changelog to reflect resent pull request merges
2020-01-13 18:56:03 -06:00
mohrt
4911f49b9c
Merge pull request #535 from glensc/patch-1
...
exclude error_reporting.ini from git export
2020-01-13 18:51:34 -06:00
mohrt
a62a7caf97
Merge pull request #540 from Hunman/master
...
Fixing problem with assigning value to object variables as arrays in smarty_internal_compile_assign
2020-01-13 18:50:41 -06:00
mohrt
704fcef160
Merge pull request #542 from IT-Experte/master
...
Fixed using wrong get and set methods from class memcached
2020-01-13 18:48:56 -06:00
mohrt
d1f37449a9
Merge pull request #546 from matks/enhance-readme
...
Add Travis badge and php compatibility infos in readme
2020-01-13 18:46:14 -06:00
mohrt
9e9961feae
Merge pull request #551 from bits4breakfast/master
...
Replace callback typehint with callable
2020-01-13 18:45:23 -06:00
mohrt
4fb3f616b2
Merge pull request #560 from JercSi/master
...
Typo in exception message
2020-01-13 18:44:07 -06:00
mohrt
e4239d095a
Merge pull request #563 from caugner/patch-1
...
Fixes the change log date of the 3.1.34 release
2020-01-13 18:42:54 -06:00
Claas Augner
5547e0177b
fix change log date
2020-01-13 18:51:37 +01:00
JercSi
b9b9d30144
Typo in exception message
...
Added space between 'line' and line number.
2019-12-20 09:49:32 +01:00