Is Zend Framework 1 compatible with PHP 7.2?

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


Yes, the error is caused by a tightening of PHP's inheritance model, so if the framework code is failing with this error in PHP 7.2 then the answer is that the framework is not compatible with 7.2, at least not without fixing this (and other similar) errors.

This error definitely looks like it's going to be a show stopper for you, and Zend 1 is no longer maintained, so I guess the simple answer is you're going to have to either upgrade Zend or not upgrade PHP.

Your other alternative would be to fork Zend yourself and fix the compatibility issues. Or there may be community forks by others who have done the same thing. I really wouldn't recommend that though. At some point you're going to have to bite the bullet and upgrade; it'll get harder to do the longer you leave it, so you may as well do it now.