phplib-list | 2000071

Re: [phplib] Possible Bug in template.inc with PHP4 From: thies <email protected>
Date: 07/10/00

On Mon, Jul 10, 2000 at 07:38:30PM +0200, Ivo Kovarik wrote:
>
>
> ----------
> >Von: Björn Schotte <bjoern <email protected>>
> >An: phplib <email protected>
> >Betreff: [phplib] Possible Bug in template.inc with PHP4
> >Datum: Mon, 10. Jul 2000 18:59 Uhr
> >
>
> > Hi,
> >
> > if anyone of you uses (or wants to use) the method
> > set_block() in your templates from version 7.2
> > (line 109, I think):
> >
> > $str = preg_replace($reg, "{$name}", $str);
> >
> > has to be replaced to
> >
> > $str = preg_replace($reg, "\{$name}", $str);
> >
> >
> > Perhaps someone could test if
> >
> > $str = preg_replace($reg, "\{$name}", $str);
> >
> > also works in PHP3?
>
> doesn't work in PHP3 :-(

    do:

    $str = preg_replace($reg, "{"."$name}", $str);

    works in PHP 3 and 4

>
> ivo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>

-- 

Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>