Date: 07/12/00
- Next message: kk: "[phplib-dev] cvs commit"
- Previous message: kk: "[phplib-dev] cvs commit"
- In reply to: kk: "[phplib-dev] cvs commit"
- Next in thread: kk: "[phplib-dev] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Jul 12, 2000 at 01:18:00PM +0200, kk wrote:
> From: kk
> Date: Wed Jul 12 13:18:00 2000
> Modified files:
> php-lib-stable/php/template.inc
>
> Log message:
> PHP4 fix.
>
>
> Index: php-lib-stable/php/template.inc
> diff -u php-lib-stable/php/template.inc:1.2 php-lib-stable/php/template.inc:1.3
> --- php-lib-stable/php/template.inc:1.2 Tue Apr 25 08:04:58 2000
> +++ php-lib-stable/php/template.inc Wed Jul 12 13:17:29 2000
> @@ -5,7 +5,7 @@
> * (C) Copyright 1999 NetUSE GmbH
^^^^ time to update;-)
> * Kristian Koehntopp
> *
> - * $Id: template.inc,v 1.2 2000/04/25 06:04:58 kk Exp $
> + * $Id: template.inc,v 1.3 2000/07/12 11:17:29 kk Exp $
> *
> */
>
> @@ -106,7 +106,7 @@
> $str = $this->get_var($parent);
> $reg = "/<!--\s+BEGIN $handle\s+-->(.*)<!--\s+END $handle\s+-->/sm";
> preg_match_all($reg, $str, $m);
> - $str = preg_replace($reg, "{$name}", $str);
> + $str = preg_replace($reg, "\{$name}", $str);
does this work in PHP 3?
isn't "{"."$name}" the more-portable way?
tc
> $this->set_var($handle, $m[1][0]);
> $this->set_var($parent, $str);
> }
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-dev-unsubscribe <email protected>
> For additional commands, e-mail: phplib-dev-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-dev-unsubscribe <email protected> For additional commands, e-mail: phplib-dev-help <email protected>
- Next message: kk: "[phplib-dev] cvs commit"
- Previous message: kk: "[phplib-dev] cvs commit"
- In reply to: kk: "[phplib-dev] cvs commit"
- Next in thread: kk: "[phplib-dev] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

