We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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


145.0k
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.



14.4k

Fixed with uninstalling PHP 5.6.