improvement stream_resolve_include_path() added to Smarty_Internal_Get_Include_Path (Forum Topic 20980)

This commit is contained in:
rodneyrehm
2012-02-06 20:17:32 +00:00
parent f009a80a74
commit b9bae74db6
2 changed files with 8 additions and 0 deletions

View File

@@ -1,4 +1,7 @@
===== trunk ===== ===== trunk =====
06.02.2012
- improvement stream_resolve_include_path() added to Smarty_Internal_Get_Include_Path (Forum Topic 20980)
30.01.2012 30.01.2012
- bugfix Smarty_Security internal $_resource_dir cache wasn't properly propagated - bugfix Smarty_Security internal $_resource_dir cache wasn't properly propagated

View File

@@ -25,6 +25,11 @@ class Smarty_Internal_Get_Include_Path {
{ {
static $_include_path = null; static $_include_path = null;
if (function_exists('stream_resolve_include_path')) {
// available since PHP 5.3.2
return stream_resolve_include_path($filepath);
}
if ($_include_path === null) { if ($_include_path === null) {
$_include_path = explode(PATH_SEPARATOR, get_include_path()); $_include_path = explode(PATH_SEPARATOR, get_include_path());
} }