Re: Funny errors under php 4.0.8 and Apache 2.0.26
| From: | Joao Prado Maia | Date: | Fri, 05 Oct 2001 00:43:55 +0000 |
| Subject: | Re: Funny errors under php 4.0.8 and Apache 2.0.26 | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1607@lists.php.net to get a copy of this message | ||
On Thu, 4 Oct 2001, LIMBOURG Arnaud wrote:
> Hello,
>
> Just to let you some funny errors i got when running the site under Apache
> 2.0.26 and Php 4.0.8 under NT 4
>
>
> Warning: Undefined variable: compile_id in
> C:\ServeurWeb\php\modules\smarty\Smarty.class.php on line 818
> Warning: Undefined index: cookie in
> C:\ServeurWeb\php\modules\smarty\Smarty.class.php on line 589
>
>
> It's not major since both are beta releases (alpha ? ;) but just to let you
> know what you *might* run into in a near future.
>
I was about to send an email about this same subject. Just so you know,
those warnings are related to the level of error reporting set on your
php.ini file. You can override that by using the error_reporting()
function.
On my case, I like to develop my applications using
error_reporting(E_ALL); on the top of my scripts to debug any silly
mistake or exception that I overlooked. When I do that while using Smarty
a lot of those warnings show up.
Probably all of them, are related to concatenation on variables /
properties that weren't initialized correctly and things like that. Is
anyone looking to fix these annoying warnings any time soon ? I can send a
patch if someone didn't already start on this.
Cheers,
Joao
--
João Prado Maia <jpm@phpbrasil.com>
http://phpbrasil.com - php com um jeitinho brasileiro
--
Precisando de consultoria em desenvolvimento para a Internet ?
Impleo.net - http://impleo.net/?lang=br