[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-dev
Subject:    Re: [SMARTY-DEV] Bug with default modifier 2.6.0rc1
From:       messju mohr <messju () lammfellpuschen ! de>
Date:       2003-09-18 20:01:15
[Download RAW message or body]

On Thu, Sep 18, 2003 at 03:13:43PM -0400, Rémy Dufour wrote:
> Im trying version 2.6.0RC1.
> when i put a / (slash) in the default modifier with single quote ...
> {$foo|default:'N/D'}
> ... i got this bug : 
> Warning: Division by zero in D:\dev\sys\tmp\smTemplate\[myfile]

yes, this is a bug that Jan Rosier reported recently and that is fixed
in cvs. you can try the cvs version of smarty or grab a daily
cvs-snapshot from http://lammfellpuschen.de/smarty-daily/ .

the snapshots a highly unofficial and i cannot guarantee a lot of
support for that service but it may help people who don't want to
tamper with cvs and also don't want to wait for RC2. BTW: cvs-HEAD is
quite stable at the moment and will stay that until 2.6.0 is released.

greetings
messju

> but when i use double quote ...
> {$foo|default:"N/D}
> ... all is ok !
> 
> Is this a bug or am i missing something ?
> 
> -- 
> Smarty Development Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic