21 Commits

Author SHA1 Message Date
Simon Wisselink
09875a61f4 changed homepage links in composer.json 2021-12-03 12:04:13 +01:00
Simon Wisselink
39b69f0142 Feature/php8 support (#629)
Adds support for PHP8.0, dropping support for PHP7.0 and below.

Backwards incompatible changes:
- Dropped support for php asp tags in templates (removed from php since php7.0)
- Dropped deprecated API calls that where only accessible through SmartyBC
- Dropped support for {php} and {include_php} tags and embedded PHP in templates. Embedded PHP will now be passed through as is.
- Removed all PHP_VERSION_ID and compare_version checks and conditional code blocks that are now no longer required
- Dropped deprecated SMARTY_RESOURCE_CHAR_SET and SMARTY_RESOURCE_DATE_FORMAT constants
- Dropped deprecated Smarty::muteExpectedErrors and Smarty::unmuteExpectedErrors API methods
- Dropped deprecated $smarty->getVariable() method. Use $smarty->getTemplateVars() instead.
- $smarty->registerResource() no longer accepts an array of callback functions

See the changelog for more details.

Switched CI from Travis to Github CI.
2021-10-13 12:15:17 +02: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
AnrDaemon
eae19f23b9 PHP 5.3 compatibility fixes 2020-05-05 01:37:36 +03: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
uwetews
c9f0de05f4 Fix PHPunit tests for PHP7 https://github.com/smarty-php/smarty/pull/532 2019-02-28 07:42:20 +01:00
uwetews
f93f95787f Fix PHPunit tests for PHP7 https://github.com/smarty-php/smarty/pull/532 2019-02-28 05:59:23 +01:00
AnrDaemon
91af98d328 Tweaked the composer.json a little. 2018-11-26 20:58:42 +03:00
AnrDaemon
b9dbd46289 Merge branch 'master' into use-classmaps 2018-09-14 17:25:51 +03:00
AnrDaemon
da29452d74 Updated composer.json with require-dev deps. 2018-07-19 20:03:29 +03:00
Sławomir Kaleta
2404095783 Update PSR-2 2018-06-12 09:58:15 +02:00
AnrDaemon
ca00a31f71 Use Composer classmap instead of bootstrap. 2017-12-05 21:19:17 +03:00
uwetews
428a7ad883 - add bootstrap file to load and register Smarty_Autoloader. Change composer.json to make it known to composer 2016-11-08 17:48:25 +01:00
Uwe Tews
08c81acbb1 add require-dev to load PHPUnit tests and lxer/parser generator (reverted from commit f3d7b05ccb) 2015-05-04 18:20:44 +02:00
Uwe Tews
9789867d8b Revert "add require-dev to load PHPUnit tests and lxer/parser generator"
This reverts commit f3d7b05ccb.
2015-05-04 18:09:21 +02:00
Uwe Tews
80926a538d Revert "test"
This reverts commit d40e2a0286.
2015-05-04 18:08:41 +02:00
Uwe Tews
d40e2a0286 test 2015-05-04 05:54:05 +02:00
Uwe Tews
f3d7b05ccb add require-dev to load PHPUnit tests and lxer/parser generator 2015-05-04 05:20:22 +02:00
Uwe Tews
0b6af0add7 move autoload code into Autoloader.php.
Use Composer autoloader when possible
2014-11-13 19:42:01 +01:00
Uwe Tews
f83b3effc6 prepare 3.1 2014-10-31 01:28:26 +01:00
Uwe Tews
f433b70cf1 Init 2014-10-31 00:42:46 +01:00