mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
- bugix Smarty did fail under PHP 7.0.0 with use_include_path = true;
This commit is contained in:
@@ -86,11 +86,8 @@ class Smarty_Internal_Runtime_GetIncludePath
|
|||||||
$this->_include_path = $_i_path;
|
$this->_include_path = $_i_path;
|
||||||
$_dirs = (array) explode(PATH_SEPARATOR, $_i_path);
|
$_dirs = (array) explode(PATH_SEPARATOR, $_i_path);
|
||||||
foreach ($_dirs as $_path) {
|
foreach ($_dirs as $_path) {
|
||||||
if (isset($_path[0]) && $_path[0] != '/' && isset($_path[1]) && $_path[1] != ':') {
|
|
||||||
$_path = $smarty->_realpath($_path . DS, true);
|
|
||||||
}
|
|
||||||
if (is_dir($_path)) {
|
if (is_dir($_path)) {
|
||||||
$this->_include_dirs[] =$_path;
|
$this->_include_dirs[] = $smarty->_realpath($_path . DS, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user