Running concrete5 on Zend Server
Permalink
I was a bit surprised that I couldn't find anything about this in the forums. I'm trying to run concrete5 on top of Zend Server with Apache (not IIS).
There's one small problem: There's already a copy of the Zend Framework included (php.ini include_path). You therefore get a lot of "cannot redeclare Zend_Locale".
It's rather easy to change this directive, Zend Server even has an interface for it but I still wonder if we shouldn't take care of it. I'd be happy to write a patch for it but I'm not sure about the best approach.
I could do stuff like this:
But adding these seems like an ugly thing to do. We also can't be sure that the version of Zend Framework included in the Server is working with concrete5. Should we dynamically scan include_path and try to remove all the stuff that causes problems?
There's one small problem: There's already a copy of the Zend Framework included (php.ini include_path). You therefore get a lot of "cannot redeclare Zend_Locale".
It's rather easy to change this directive, Zend Server even has an interface for it but I still wonder if we shouldn't take care of it. I'd be happy to write a patch for it but I'm not sure about the best approach.
I could do stuff like this:
public function view() { if (!class_exists('Zend_Locale')) { Loader::library('3rdparty/Zend/Locale'); }
But adding these seems like an ugly thing to do. We also can't be sure that the version of Zend Framework included in the Server is working with concrete5. Should we dynamically scan include_path and try to remove all the stuff that causes problems?