Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Not able to switch from PHP 5.6 to PHP 7 within Phalcon 3

Hi,

I can't load phalcon.so within PHP 7. I think the problem is that the extension is putted inside

/usr/lib/php/20131226/

instead of

/usr/lib/php/20151012/

Tried to copy it but without success. With PHP 5.6 it works fine. What else can I do?

The PHP error message is:

PHP Fatal error:  Uncaught Error: Class 'Phalcon\\Di\\FactoryDefault' not found

Loaded php.ini:

/etc/php/7.0/apache2/php.ini


99.5k
Accepted
answer

You can't copy it. You need to install php7 and php7-dev packages and install phalcon from a scratch for php 7.



3.9k

Fixed with uninstalling PHP 5.6.