Yup

http://framework.zend.com/manual/en/requirements.html#requirements.version

5.24 or later..



On Thu, Jan 22, 2009 at 2:10 PM, anru chen <[email protected]> wrote:

>
> ah, that probably the reason, php 5.0.5 not support array hint.
>
> regard,
>
>
> On Thu, Jan 22, 2009 at 2:01 PM, Matthew White <[email protected]>
> wrote:
> > Check the php version of the host.
> >
> > That error relates to this function
> >
> >   public function setParams(array $params)
> >     {
> >         $this->_invokeParams = array_merge($this->_invokeParams,
> $params);
> >         return $this;
> >     }
> >
> > I suspect that your host is on an earlier version of php, which doesn't
> > support this syntax.
> >
> > ZF is php5 only.
> >
> > Cheers,
> >
> > Matt
> >
> > On Thu, Jan 22, 2009 at 1:57 PM, anru chen <[email protected]> wrote:
> >>
> >> Hi:
> >>
> >> I have developed a site with zendframe work , it run ok  on my local
> >> machine.
> >>
> >> but when i upload it to a share host.
> >>
> >> following error showed:
> >>
> >> Parse error: parse error, unexpected T_ARRAY, expecting '&' or
> >> T_VARIABLE in /home/www/Library/Zend/Controller/Front.php on line 654.
> >>
> >> that Front.php is part of zendframe, so should not have parse error.
> >>
> >> the sharded host use php 5.05.
> >>
> >> regrard,
> >>
> >> anru
> >>
> >>
> >
> >
> > >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to