Changeset 3584 for trunk/include/smarty/libs/Smarty.class.php
- Timestamp:
- Jul 15, 2009, 1:43:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/smarty/libs/Smarty.class.php
r3282 r3584 21 21 * For questions, help, comments, discussion, etc., please join the 22 22 * Smarty mailing list. Send a blank e-mail to 23 * smarty-discussion-subscribe@googlegroups.com 23 * smarty-discussion-subscribe@googlegroups.com 24 24 * 25 25 * @link http://www.smarty.net/ … … 28 28 * @author Andrei Zmievski <andrei@php.net> 29 29 * @package Smarty 30 * @version 2.6.2 230 * @version 2.6.26 31 31 */ 32 32 33 /* $Id: Smarty.class.php 2785 2008-09-18 21:04:12Z Uwe.Tews$ */33 /* $Id: Smarty.class.php 3163 2009-06-17 14:39:24Z monte.ohrt $ */ 34 34 35 35 /** … … 108 108 * When set, smarty does uses this value as error_reporting-level. 109 109 * 110 * @var boolean110 * @var integer 111 111 */ 112 112 var $error_reporting = null; … … 237 237 'PHP_TAGS' => false, 238 238 'MODIFIER_FUNCS' => array('count'), 239 'ALLOW_CONSTANTS' => false 239 'ALLOW_CONSTANTS' => false, 240 'ALLOW_SUPER_GLOBALS' => true 240 241 ); 241 242 … … 465 466 * @var string 466 467 */ 467 var $_version = '2.6.2 2';468 var $_version = '2.6.26'; 468 469 469 470 /** … … 1058 1059 // var non-existant, return valid reference 1059 1060 $_tmp = null; 1060 return $_tmp; 1061 return $_tmp; 1061 1062 } 1062 1063 } … … 1117 1118 { 1118 1119 static $_cache_info = array(); 1119 1120 1120 1121 $_smarty_old_error_level = $this->debugging ? error_reporting() : error_reporting(isset($this->error_reporting) 1121 1122 ? $this->error_reporting : error_reporting() & ~E_NOTICE); … … 1304 1305 return; 1305 1306 } else { 1306 if ($this->debugging) {1307 // capture time for debugging info1308 $_params = array();1309 require_once(SMARTY_CORE_DIR . 'core.get_microtime.php');1310 $this->_smarty_debug_info[$_included_tpls_idx]['exec_time'] = (smarty_core_get_microtime($_params, $this) - $_debug_start_time);1311 }1312 1307 error_reporting($_smarty_old_error_level); 1313 1308 if (isset($_smarty_results)) { return $_smarty_results; } … … 1555 1550 } 1556 1551 $params['resource_timestamp'] = filemtime($_resource_name); 1557 $_return = is_file($_resource_name) ;1552 $_return = is_file($_resource_name) && is_readable($_resource_name); 1558 1553 break; 1559 1554 … … 1718 1713 function _read_file($filename) 1719 1714 { 1720 if ( file_exists($filename) && ($fd = @fopen($filename, 'rb')) ) {1715 if ( file_exists($filename) && is_readable($filename) && ($fd = @fopen($filename, 'rb')) ) { 1721 1716 $contents = ''; 1722 1717 while (!feof($fd)) { … … 1939 1934 return eval($code); 1940 1935 } 1941 1936 1942 1937 /** 1943 1938 * Extracts the filter name from the given callback 1944 * 1939 * 1945 1940 * @param callback $function 1946 1941 * @return string … … 1957 1952 } 1958 1953 } 1959 1954 1960 1955 /**#@-*/ 1961 1956
Note: See TracChangeset
for help on using the changeset viewer.