Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Zend Framework 1 compatible with PHP 7.2?

I have a project built in Zend Framework 1. With PHP up to 7.1, it works fine. When I upgraded PHP on one of the testing servers, it shows an internal error:

Fatal error: Declaration of Zend_Rest_Route::assemble($data = Array, $reset = false, $encode = true) must be compatible with Zend_Controller_Router_Route_Module::assemble($data = Array, $reset = false, $encode = true, $partial = false) in /public_html/library/Zend/Rest/Route.php on line 52

It appears that both classes belong to the framework. Version of ZF1 installed is 1.12.18.

Is there a version of ZF1 compatible with PHP 7.2? Or is upgrade to ZF2 unavoidable to maintain compatibility?

like image 238
TimSparrow Avatar asked Mar 02 '18 15:03

TimSparrow


People also ask

Is Zend framework in PHP?

Zend is an open source PHP framework. It is pure object-oriented and built around the MVC design pattern. Zend framework contains collection of PHP packages which can be used to develop web applications and services. Zend was started by Andi Gutmans and Zeev Suraski.

What is the use of Zend framework in PHP?

Zend Framework is a collection of professional PHP packages with more than 570 million installations. It can be used to develop web applications and services using PHP 5.6+, and provides 100% object-oriented code using a broad spectrum of language features.

How long is PHP 7.4 supported?

The end of life date for PHP 7.4 is November 28, 2022.

What happened Zend Framework?

Zend Framework is now called Laminas. Apigility is now called Laminas API Tools.


1 Answers

Zend Framework 1 has reached its end of life, but some forks have been done. Shardj's one is compatible with PHP 7.3.

like image 129
AnthonyB Avatar answered Sep 30 '22 14:09

AnthonyB