Re: [phplib] PHP 4.0.4 and template blocks From: nathan r. hruby (nhruby <email protected>)
Date: 01/01/01

On Mon, 1 Jan 2001, Alistair Moffatt wrote:

> Does the template class work at all with PHP 4.0.4?
> Basic substitution of variables appears to work fine, but I get warnings
> whenever I try to define a block within a file. The warning says something
> like "Unknown index <aaaa> in template" where <aaa> is the name that I try
> to assign to the block. Substitution of the block then fails to take place.
>
> I am using the template.inc file from PHPLIB 7.2c
>

Seems like a php4.0.4 specfic feature.. fun.

>From the changelog... (http://www.php.net/ChangeLog-4.php)
  Implemented support for Perl-style matching regexp delimiters in PCRE.
  You can use <{[( and )]}> to delimit your expressions now. (Andrei)

There are other preg_* fixes / additions, but it's prolly this one that
broke the template engine..

Grrr..

-n

-- 
........
nathan hruby
Webmaster: UGA Department of Drama and Theatre
Project Maintainer: phpSlash, Carousel
nhruby <email protected>
........

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