Quantcast

Problem with Zend_Config and php 5.3 and a Colon

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Problem with Zend_Config and php 5.3 and a Colon

Stefan Sturm-2
Hello,

I updated my server to php 5.3 and now my application( using 1.8.4 )
stop working.

I have this line in one of my ini files( acl.ini ):
resources.admin:error.resource = admin:error

On this Line I get this error:

Uncaught exception 'Zend_Config_Exception' with message 'syntax error,
unexpected ':' in ../config/acl.ini on line 36 ' in
path\to\Zend\Config\Ini.php:184 Stack trace: #0
path\to\Zend\Config\Ini.php(125):
Zend_Config_Ini->_loadIniFile('\path\to\..')

Perhaps somebody can help me on this...

Thanks and greetings,
Stefan Sturm
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Problem with Zend_Config and php 5.3 and a Colon

weierophinney
Administrator
-- Stefan Sturm <[hidden email]> wrote
(on Wednesday, 04 November 2009, 09:23 AM +0100):

> I updated my server to php 5.3 and now my application( using 1.8.4 )
> stop working.
>
> I have this line in one of my ini files( acl.ini ):
> resources.admin:error.resource = admin:error
>
> On this Line I get this error:
>
> Uncaught exception 'Zend_Config_Exception' with message 'syntax error,
> unexpected ':' in ../config/acl.ini on line 36 ' in
> path\to\Zend\Config\Ini.php:184 Stack trace: #0
> path\to\Zend\Config\Ini.php(125):
> Zend_Config_Ini->_loadIniFile('\path\to\..')
>
> Perhaps somebody can help me on this...

Two issues. First, wrap your values in double quotes. Second, keys
cannot have colons in them, IIRC. I'm not entirely sure how you're
expecting "admin:error" to resolve to a plugin name; I'd use an
underscore.

    resources.admin_error.resource = "admin:error"

--
Matthew Weier O'Phinney
Project Lead            | [hidden email]
Zend Framework          | http://framework.zend.com/
Loading...