Re: [PHP4BETA] parse error
| From: | Sascha Schumann | Date: | Thu, 10 Jun 1999 15:50:56 +0000 |
| Subject: | Re: [PHP4BETA] parse error | ||
| References: | 1 2 3 4 5 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-1457@lists.php.net to get a copy of this message | ||
On Thu, Jun 10, 1999 at 06:49:17PM +0200, Zeev Suraski wrote:
> At 17:20 10/06/99 , Sascha Schumann wrote:
> >On Thu, Jun 10, 1999 at 06:08:30PM +0200, Andi Gutmans wrote:
> > > At 14:11 10/06/99 +0200, Sascha Schumann wrote:
> > > >FastTemplate is a class. I get a parse error on the following
> > > >line within the class:
> > > >
> > > >function fetch ( $template = "$this->LAST" )
> > > >
> > > >Probably does not like the $this->LAST construct.
> > >
> > > Nope it's not supposed to work. You can only put a constant value there
> > not
> > > a variable or expression.
> >
> >Ok, I noticed the maintainer.
>
> What do you mean?
I sent him a notice about removing that construction. See
http://www.thewebmasters.net/php/ for more
information about
FastTemplate.
> Anyway, it seems to be an inherent incompatibility with PHP 3.0. PHP 3.0
> wasn't supposed to support variables here, but it supported string, which
> allowed you to get around this limit. We never intended it to work (quite
> on the contrary).
> I'm not very optimistic about supporting this in PHP 4.0, it's too much
> hassle. I'll give it some more thought though.
>
> Zeev
> --
> Zeev Suraski <zeev@zend.com> http://www.zend.com/
> For a PGP public key, finger bourbon@netvision.net.il
--
Regards,
Sascha Schumann
Consultant