Page 1 of 1

Zend Framework 1 installed via Composer causes problems

Posted: Thu Nov 02, 2017 12:41 pm
by jon2125
I have a PHP Library installed via composer that requires zendframework/zendframework1.
That causes composer to install "zendframework/zendframework1" into the vendor folder.

Since SilverStripe Framework already has Zend in "framework/thirdparty/Zend" I run into errors:

Code: Select all

PHP message: PHP Fatal error:  Cannot redeclare class Zend_Locale in /framework/thirdparty/Zend/Locale.php on line 30
These errors only happen in a different module installed via composer that has no dependency for zendframework.

Any Ideas how to fix this?