ZF-5843: Locale files are not found on the system but they are really there
Creating a new date with Zend_date throws an exception about missing locale files:
Ex: $myDate = new Zend_Date("2009-02-03");
results in: Fatal error: Uncaught exception 'Zend_Locale_Exception' with message 'Missing locale file '/usr/local/php5/lib/php/Zend/Locale/Data/ca.xml' for 'ca' locale.
Zend framework libraries are found under /usr/local/php5/lib/php/Zend/... Had a look to the server, and the files are really there so I suppose it's trying to load the xml file from somewhere else.
If I upload the Zend Libraries to my project, for example: /home/myProject/library/Zend/... then this works fine. and the new date is ok.
So, I think there's a problem in Locale/Data.php, in concrete, in line 140 when the function _findRoute( .. ) tries to load the locale xml file. ... $filename = dirname(FILE) . '/Data/' .$locale . '.xml'; ...