Re: [phplib] Bug fixes for template.inc and documentation-4.html From: toby cabot (toby <email protected>)
Date: 07/13/00

> "Brownridge, Tom" wrote:
>
> # The way it should be...
> $str = preg_replace($reg, "\{$name}", $str);

According to previous traffic on the list, this should be:

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

in order to work with php3 and php4. In any case, this is fixed in 7.2c
(which came out yesterday).

> 2) documentation-4.html had a bug in one of the example scripts, in
> the php file that pertains to the template example (Section 4.2, way
> at the bottom). What should have been typed as "OUT" had been typed
> "out". The correct code follows...
>
> # build out from box, then build out from page...
> # $t->parse("out", array("box", "page"));
> $t->parse("OUT", array("box", "page"));
>
> # finish out and print it.
> # $t->p("out");
> $t->p("OUT");

You'll probably want to forward this to phplib-dev and one of the
developers will pick it up.

Thanks,
Toby

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