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
JercSi
b9b9d30144
Typo in exception message
...
Added space between 'line' and line number.
2019-12-20 09:49:32 +01:00
uwetews
7f531f6a44
09.10.2018
...
- bugfix fix of 26.8.2017 https://github.com/smarty-php/smarty/issues/327
modifier is applied to sum expression https://github.com/smarty-php/smarty/issues/491
- bugfix indexed arrays could not be defined "array(...)""
2018-10-09 03:36:14 +02:00
uwetews
a6cb648dfc
- bugfix large plain text template sections without a Smarty tag > 700kB could
...
could fail in version 3.1.32 and 3.1.33 because PHP preg_match() restrictions
https://github.com/smarty-php/smarty/issues/488
2018-09-18 04:46:30 +02:00
uwetews
4f7cd8f1b3
- reformating for PSR-2 coding standards https://github.com/smarty-php/smarty/pull/483
2018-08-31 16:45:09 +02:00
uwetews
7a8607fe17
- PSR-2 code style fixes for config and template file Lexer/Parser generated with
...
the Smarty Lexer/Parser generator from https://github.com/smarty-php/smarty-lexer
https://github.com/smarty-php/smarty/pull/483
2018-08-31 02:37:47 +02:00
uwetews
799b5cb342
- fix PSR-2 coding standards and PHPDoc blocks https://github.com/smarty-php/smarty/pull/452
...
https://github.com/smarty-php/smarty/pull/475
https://github.com/smarty-php/smarty/pull/473
- bugfix PHP5.2 compatibility https://github.com/smarty-php/smarty/pull/472
2018-08-19 02:35:46 +02:00
Sławomir Kaleta
2404095783
Update PSR-2
2018-06-12 09:58:15 +02:00
Uwe Tews
0dbace8321
- new feature {parent} = {$smarty.block.parent} {child} = {$smarty.block.child}
2018-03-26 22:35:31 +02:00
Uwe Tews
40ea5d89da
- replacement of " by '
2017-11-20 12:26:48 +01:00
Uwe Tews
96fd914cc1
bugfix rework of newline spacing between tag code and template text.
...
now again identical with Smarty2 (forum topic 26878)
2017-11-20 04:07:51 +01:00
Uwe Tews
3799714d53
lexer/parser optimization
2017-11-05 20:04:32 +01:00
Uwe Tews
dd9c076dfa
- correction of PHPDoc blocks
...
- minor code cleanup
2017-10-26 10:25:41 +02:00
Uwe Tews
3d7dece088
- bugfix custom delimiters could fail since modification of version 3.1.32-dev-23
...
https://github.com/smarty-php/smarty/issues/394
2017-10-21 13:14:14 +02:00
Uwe Tews
e4f41adf5a
-bugfix fix implementation of unclosed block tag in double quoted string of 12.10.2017
...
https://github.com/smarty-php/smarty/issues/396 https://github.com/smarty-php/smarty/issues/397
https://github.com/smarty-php/smarty/issues/391 https://github.com/smarty-php/smarty/issues/392
2017-10-18 09:40:38 +02:00
Uwe Tews
6b97d5cdd5
- unclosed block tag in double quted string must throw compiler exception.
...
https://github.com/smarty-php/smarty/issues/391 https://github.com/smarty-php/smarty/issues/392
2017-10-12 20:15:42 +02:00
Uwe Tews
b271173a2d
bugfix $smarty.block.child and $smarty.block.parent could not be used like any
...
$smarty special variable https://github.com/smarty-php/smarty/issues/393
2017-10-12 08:21:12 +02:00
Uwe Tews
428efa634d
- bugfix modification of 9.8.2017 did fail on some recursive
...
tag nesting. https://github.com/smarty-php/smarty/issues/389
2017-10-07 09:05:54 +02:00
Uwe Tews
6a257a7ad3
- improvement repeated delimiter like {{ and }} will be treated as literal
...
https://groups.google.com/forum/#!topic/smarty-developers/h9r82Bx4KZw
2017-08-09 12:20:33 +02:00
Uwe Tews
418a1fd443
- improvement repeated delimiter like {{ and }} will be treated as literal
...
https://groups.google.com/forum/#!topic/smarty-developers/h9r82Bx4KZw
2017-08-09 11:15:33 +02:00
Uwe Tews
5a8d015ef1
- bugfix solve preg_match() hhvm parameter problem https://github.com/smarty-php/smarty/pull/372
2017-07-21 08:12:33 +02:00
uwetews
b745a31a2d
fixed spelling chilek commented on c4746e9
2016-11-11 21:17:32 +01:00
uwetews
c4746e9080
- optimization of lexer speed https://github.com/smarty-php/smarty/issues/311
2016-11-07 03:08:11 +01:00
uwetews
5b508b7bf3
- bugfix nocache hash was not removed for <?xml ?> tags in subtemplates https://github.com/smarty-php/smarty/issues/300
2016-09-28 23:39:05 +02:00
uwetews
04301645d6
- bugfix compiling of templates failed when the Smarty delimiter did contain '/' https://github.com/smarty-php/smarty/issues/264
2016-08-05 01:00:51 +02:00
uwetews
0f7f0d87b6
- new tag {make_nocache} read NEW_FEATURES.txt https://github.com/smarty-php/smarty/issues/110
2016-02-14 02:54:38 +01:00
uwetews
47237eb84f
- bugfix wrong precedence on special if conditions like '$foo is ... by $bar' could cause wrong code https://github.com/smarty-php/smarty/issues/178
2016-02-10 03:19:25 +01:00
uwetews
b04486a091
- reformat all code for unique style
2016-02-09 01:27:15 +01:00
uwetews
7eb56ac5e3
- bugfix plugin names starting with "php" did not compile https://github.com/smarty-php/smarty/issues/147
2015-12-30 22:11:15 +01:00
uwetews
e0fc310b6e
-bugfix a left delimter like '[%' did fail on [%$var_[%$variable%]%] (forum topic 25798)
2015-11-25 21:19:23 +01:00
uwetews
64464e8fbe
- bugfix {if $foo instanceof $bar} failed to compile if 2nd value is a variable https://github.com/smarty-php/smarty/issues/92
2015-09-19 19:55:14 +02:00
uwetews
620e52405b
- improvement convert template inheritance into runtime processing
...
- bugfix {$smarty.block.parent} did always reference the root parent block https://github.com/smarty-php/smarty/issues/68
2015-09-01 01:54:28 +02:00
Uwe Tews
bb3dfc6fdf
- bugfix parser did hang on text starting <?something https://github.com/smarty-php/smarty/issues/74
2015-07-25 22:32:10 +02:00
Uwe Tews
9986286af0
- bugfix resolve naming conflict between custom Smarty delimiter '<%' and PHP ASP tags https://github.com/smarty-php/smarty/issues/64
2015-06-27 16:09:50 +02:00
Uwe Tews
3239a19435
- bugfix resolve naming conflict between custom Smarty delimiter '<%' and PHP ASP tags https://github.com/smarty-php/smarty/issues/64
2015-06-27 15:35:27 +02:00
Uwe Tews
768b7d1ec5
- bugfix the lexer could hang on very large quoted strings (forum topic 25570)
2015-06-11 23:33:30 +02:00
Uwe Tews
f1e1f56ffe
- bugfix using {$foo} as array index like $bar.{$foo} or in double quoted string like "some {$foo} thing" failed https://github.com/smarty-php/smarty/issues/49
2015-06-08 23:54:46 +02:00
Uwe Tews
fa269d418f
- bugfix <?xml ... ?> including template variables broken since 3.1.22 https://github.com/smarty-php/smarty/issues/47
2015-06-01 22:26:45 +02:00
Uwe Tews
0434f34bdd
- bugfix if condition string 'neq' broken due to a typo https://github.com/smarty-php/smarty/issues/42
2015-05-24 18:37:53 +02:00
Uwe Tews
c9cd39f36f
minor bugfix when processing autoliteral { php} tag. Does not effect generated output.
2015-05-23 23:40:02 +02:00
Uwe Tews
ec449734c3
- improvement on php_handling to allow very large PHP sections, better error handling
...
- improvement allow extreme large comment sections (forum 25538)
2015-05-23 18:56:00 +02:00
Uwe Tews
85e05458c6
- bugfix compiler could run into the pcre.backtrack_limit on larger comment or {php} tag sections (forum 25538)
2015-05-20 05:48:45 +02:00
Uwe Tews
ac99173cea
- improvement introduce shortcuts in lexer/parser rules for most frequent terms for higher
...
compilation speed
2015-05-18 04:12:40 +02:00
Uwe Tews
e3123c0427
- improvement higher compilation speed by modified lexer/parser generator at "smarty/smarty-lexer"
2015-05-16 16:33:50 +02:00
Uwe Tews
d21921de22
- improvement reduce number of lexer tokens on operators and if conditions
2015-05-16 14:47:12 +02:00
Uwe Tews
a74804b061
- bugfix {php}{/php} did work just for single lines https://github.com/smarty-php/smarty/issues/33
2015-05-16 13:33:04 +02:00
Uwe Tews
2b858212b7
- improvement remove not needed ?><?php transitions from compiled code
2015-05-13 02:06:33 +02:00
Uwe Tews
d92714cc7e
- optimization move <?php ?> handling from parser to new compiler module
2015-05-06 00:03:26 +02:00
Uwe Tews
2fb5bc6bbe
lexer and parser optimizations
...
up to 30% higher compiling speed depending on template complexity
2014-12-13 23:02:29 +01:00
Uwe Tews
7bd40d2c0b
- bugfix variables $null, $true and $false did not work
...
after the change of 12.11.2014 (forum 25342)
2014-12-09 23:33:11 +01:00