mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
Merge branch 'master' into feature/php8-support
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
/.gitattributes export-ignore
|
/.gitattributes export-ignore
|
||||||
/.gitignore export-ignore
|
/.gitignore export-ignore
|
||||||
/error_reporting.ini export-ignore
|
|
||||||
/make-release.sh export-ignore
|
/make-release.sh export-ignore
|
||||||
/phpunit.sh export-ignore
|
/phpunit.sh export-ignore
|
||||||
/phpunit.xml export-ignore
|
/phpunit.xml export-ignore
|
||||||
|
@@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [3.1.38] - 2021-01-08
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Smarty::SMARTY_VERSION wasn't updated https://github.com/smarty-php/smarty/issues/628
|
||||||
|
|
||||||
|
## [3.1.37] - 2021-01-07
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Switch CI from Travis to Github CI
|
- Switch CI from Travis to Github CI
|
||||||
- Updated unit tests to avoid skipped and risky test warnings
|
- Updated unit tests to avoid skipped and risky test warnings
|
||||||
@@ -26,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- PHP5.3 compatibility fixes
|
- PHP5.3 compatibility fixes
|
||||||
|
- Brought lexer source functionally up-to-date with compiled version
|
||||||
|
|
||||||
## [3.1.36] - 2020-04-14
|
## [3.1.36] - 2020-04-14
|
||||||
|
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
|
|
@@ -249,7 +249,13 @@ template ::= template PHP(B). {
|
|||||||
|
|
||||||
// template text
|
// template text
|
||||||
template ::= template TEXT(B). {
|
template ::= template TEXT(B). {
|
||||||
$this->current_buffer->append_subtree($this, $this->compiler->processText(B));
|
$text = $this->yystack[ $this->yyidx + 0 ]->minor;
|
||||||
|
|
||||||
|
if ((string)$text == '') {
|
||||||
|
$this->current_buffer->append_subtree($this, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->current_buffer->append_subtree($this, new Smarty_Internal_ParseTree_Text($text, $this->strip));
|
||||||
}
|
}
|
||||||
// strip on
|
// strip on
|
||||||
template ::= template STRIPON. {
|
template ::= template STRIPON. {
|
||||||
@@ -308,7 +314,7 @@ smartytag(A)::= SIMPLETAG(B). {
|
|||||||
$tag = trim(substr(B, $this->compiler->getLdelLength(), -$this->compiler->getRdelLength()));
|
$tag = trim(substr(B, $this->compiler->getLdelLength(), -$this->compiler->getRdelLength()));
|
||||||
if ($tag == 'strip') {
|
if ($tag == 'strip') {
|
||||||
$this->strip = true;
|
$this->strip = true;
|
||||||
A = null;;
|
A = null;
|
||||||
} else {
|
} else {
|
||||||
if (defined($tag)) {
|
if (defined($tag)) {
|
||||||
if ($this->security) {
|
if ($this->security) {
|
||||||
|
@@ -27,7 +27,6 @@
|
|||||||
* @author Uwe Tews <uwe dot tews at gmail dot com>
|
* @author Uwe Tews <uwe dot tews at gmail dot com>
|
||||||
* @author Rodney Rehm
|
* @author Rodney Rehm
|
||||||
* @package Smarty
|
* @package Smarty
|
||||||
* @version 3.1.36
|
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* set SMARTY_DIR to absolute path to Smarty library files.
|
* set SMARTY_DIR to absolute path to Smarty library files.
|
||||||
@@ -112,7 +111,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
|||||||
/**
|
/**
|
||||||
* smarty version
|
* smarty version
|
||||||
*/
|
*/
|
||||||
const SMARTY_VERSION = '3.1.36';
|
const SMARTY_VERSION = '3.1.38';
|
||||||
/**
|
/**
|
||||||
* define variable scopes
|
* define variable scopes
|
||||||
*/
|
*/
|
||||||
|
@@ -115,7 +115,7 @@ class Smarty_Internal_Config_File_Compiler
|
|||||||
$this->smarty->_debug->start_compile($this->template);
|
$this->smarty->_debug->start_compile($this->template);
|
||||||
}
|
}
|
||||||
// init the lexer/parser to compile the config file
|
// init the lexer/parser to compile the config file
|
||||||
/* @var Smarty_Internal_ConfigFileLexer $this ->lex */
|
/* @var Smarty_Internal_ConfigFileLexer $this->lex */
|
||||||
$this->lex = new $this->lexer_class(
|
$this->lex = new $this->lexer_class(
|
||||||
str_replace(
|
str_replace(
|
||||||
array(
|
array(
|
||||||
@@ -127,7 +127,7 @@ class Smarty_Internal_Config_File_Compiler
|
|||||||
) . "\n",
|
) . "\n",
|
||||||
$this
|
$this
|
||||||
);
|
);
|
||||||
/* @var Smarty_Internal_ConfigFileParser $this ->parser */
|
/* @var Smarty_Internal_ConfigFileParser $this->parser */
|
||||||
$this->parser = new $this->parser_class($this->lex, $this);
|
$this->parser = new $this->parser_class($this->lex, $this);
|
||||||
if (function_exists('mb_internal_encoding')
|
if (function_exists('mb_internal_encoding')
|
||||||
&& function_exists('ini_get')
|
&& function_exists('ini_get')
|
||||||
|
@@ -59,7 +59,7 @@ class StreamVariableTest extends PHPUnit_Smarty
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* test no existant stream variable
|
* test no existent stream variable
|
||||||
*/
|
*/
|
||||||
// public function testStreamVariable2()
|
// public function testStreamVariable2()
|
||||||
// {
|
// {
|
||||||
|
Reference in New Issue
Block a user