Problem with Zend_Config and php 5.3 and a Colon

2 messages Options
Embed this post
Permalink
Stefan Sturm-2

Problem with Zend_Config and php 5.3 and a Colon

Reply Threaded More More options
Print post
Permalink
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
weierophinney

Re: Problem with Zend_Config and php 5.3 and a Colon

Reply Threaded More More options
Print post
Permalink
-- 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/