CentOS7 only offers php-5.4.16, which means you're using an external repository, and each maintainer may have done things his own way.
As mentioned above, check the files used through both the CLI and phpinfo for those two settings:
- "Loaded Configuration File"
- "Scan this dir for additional .ini files"
Note that with Phalcon4 you'll need to have PSR installed and loaded before Phalcon.
To avoid any issue related to that, I opt to create two files in the directory specified in "Scan this dir for additional .ini files":
echo 'extension=psr.so' > /ADDITIONAL_INI_DIRECTORY/40-psr.ini
echo 'extension=phalcon.so' > /ADDITIONAL_INI_DIRECTORY/50-phalcon.ini
(40 will be loaded before 50)
It may also be useful to describe how you obtained the Phalcon binary (and eventually PSR), because if you built them yourself you may not have targeted the correct PHP version (you may have mutiple php-config and phpize installed).
I wrote a quick guide for this kind of shenanigans on a specific repository, maybe you could adapt it to your situation: