-- Vincent Louvet <vinc...@e-spiration.com> wrote (on Wednesday, 21 October 2009, 03:44 PM -0700): > Well, I'm not sure about anything. > After search on Internet about the error messages it seems to be an issue > with PHP 5.3 as other people had the same kind of problem (it may have > something to do with the ending $). > > In my case, the pre production server uses PHP 5.3.0, Apache/2.2.3 (CentOS) > and mysql 5.1.39 the ZF version is the 1.9.4 > > This is what I get : > > 1 - Single quotes: > > resources.router.routes.news.route = '^news/(\d+)/(.*)\.html$'
I see one problem here already. It may or may not affect usage, but remove the leading '^' and trailing '$' -- the router adds those for you. Let me know what happens when you do that. If it works, great, if not, we then have a test case for the 5.3 test cases. > => no php error but for any reason the route doesn't work > --------------------------------------------------------------------------- > > 2 - Double quotes: > > resources.router.routes.news.route = "^news/(\d+)/(.*)\.html$" > > Fatal error: Uncaught exception 'Zend_Config_Exception' with message > 'syntax error, unexpected $end, expecting TC_DOLLAR_CURLY or > TC_QUOTED_STRING or '"' in > /var/www/vhosts/domain.com/application/configs/application.ini on line 51 > ' in /var/www/vhosts/domain.com/library/Zend/Config/Ini.php:184 > Stack trace: > #0 /var/www/vhosts/domain.com/library/Zend/Config/Ini.php(125): > Zend_Config_Ini->_loadIniFile('/var/www/vhosts...') > #1 /var/www/vhosts/domain.com/library/Zend/Application.php(375): > Zend_Config_Ini->__construct('/var/www/vhosts...', 'development') > #2 /var/www/vhosts/domain.com/library/Zend/Application.php(85): > Zend_Application->_loadConfig('/var/www/vhosts...') > #3 /var/www/vhosts/domain.com/httpdocs/index.php(30): > Zend_Application->__construct('development', '/var/www/vhosts...') > #4 {main} > thrown in /var/www/vhosts/domain.com/library/Zend/Config/Ini.php on line > 184 > --------------------------------------------------------------------------- > > 3 - No quotes: > > resources.router.routes.news.route = ^news/(\d+)/(.*)\.html$ > > Fatal error: Uncaught exception 'Zend_Config_Exception' with message > 'syntax error, unexpected '(' in > /var/www/vhosts/domain.com/application/configs/application.ini on line 51 > ' in /var/www/vhosts/domain.com/library/Zend/Config/Ini.php:184 > Stack trace: > #0 /var/www/vhosts/domain.com/library/Zend/Config/Ini.php(125): > Zend_Config_Ini->_loadIniFile('/var/www/vhosts...') > #1 /var/www/vhosts/domain.com/library/Zend/Application.php(375): > Zend_Config_Ini->__construct('/var/www/vhosts...', 'development') > #2 /var/www/vhosts/domain.com/library/Zend/Application.php(85): > Zend_Application->_loadConfig('/var/www/vhosts...') > #3 /var/www/vhosts/domain.com/httpdocs/index.php(30): > Zend_Application->__construct('development', '/var/www/vhosts...') > #4 {main} > thrown in /var/www/vhosts/domain.com/library/Zend/Config/Ini.php on line > 184 > --------------------------------------------------------------------------- > > I'd be glad to know how to get rid of that problem otherwise I'll have to > remove the Route_Regex... > > Best, > > > > > > > >> After setting up the database and apache, uploading all the php scripts I > >> had to make a few changes in the application.ini as I was getting syntax > >> errors (typically replace the " by some '). > > > > Are you sure about this? Traditionally, the parse_ini_string|file > > functions have preferred double-quotes over single-quotes when parsing > > files for string values. If this is no longer the case, then it's a huge > > BC break in PHP 5.3, and I need to notify upstream. > > > > > > -- > > Matthew Weier O'Phinney > > Project Lead | matt...@zend.com > > Zend Framework | http://framework.zend.com/ > > > > > > > ----- > Vincent > -- > View this message in context: > http://www.nabble.com/application.ini-adaptation-for-php-5.3-tp25993786p26001421.html > Sent from the Zend Framework mailing list archive at Nabble.com. > -- Matthew Weier O'Phinney Project Lead | matt...@zend.com Zend Framework | http://framework.zend.com/