[BUG] exec_time problem
| From: | Mika | Date: | Mon, 17 Feb 2003 01:08:55 +0000 |
| Subject: | [BUG] exec_time problem | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7792@lists.php.net to get a copy of this message | ||
Hi,
I have a problem on a page of my website when I use the mode Debug. I have a
notice of Undefined variable which appears directly in the javascript code
generated by the default template debug.tpl.
<b>Notice</b>: Undefined index: exec_time in
<b>e:\path2templates_c\file%3Ac%3A^php^smarty^debug.tpl</b> on line
<b>196</b><br />
</font>0.00000) (total)</i></font></tt></td></tr>");
I use E_ALL reporting in PHP, and the class which extends Smarty I use is
written at the end of the post. I saw on the group that a patch was written
for this bug in Dec 2002. How can I know, if this patch is included in the
last Smarty release ?
Here's a link of the patch:
http://lists.php.net/article.php?group=php.smarty.dev&article=495
If the patch is not yet applied, can I apply it myself? And how? I am not
familiar with cvs writing, I am not sure to clearly understand which lines I
have to modify.
Hoh, i will forgot on this page I use a fetch() method.
Any help will be welcome
Thanks,
Mickäel
--
Nb: DEBUG_ENV is set to true
class Smarty_User extends Smarty {
function Smarty_User() {
$this->Smarty();
$this->template_dir = USER_TEMPLATES_DIR;
$this->compile_dir = USER_COMPILE_DIR;
$this->config_dir = CONFIGS;
$this->cache_dir = USER_CACHE;
$this->plugins_dir = PLUGINS_DIR;
if (DEBUG_ENV) {
$this->force_compile = true;
$this->show_info_header = true;
$this->show_info_include = true;
} else {
$this->force_compile = false;
$this->compile_check = false;
}
$this->left_delimiter = '<!--{';
$this->right_delimiter = '}-->';
$this->caching = false;
if(DEBUG_ENV) {
$this->debugging=true;
}
$this->use_sub_dirs = false;
$this->assign('app_name','User');
}
}