Phalcon\Version::get() returning "3.4.2" for Phalcon 3.4.3 installation

I am running Ubuntu 18.04.1 with PHP 7.3.6-1 and have installed Phalcon 3.4.3. When I run phpinfo() it says that Phalcon version 3.4.3 is loaded. I have searched and confirmed that there only exists one phalcon.so file and it is the one being loaded.

I have a dashboard in my web app that that calls Phalcon\Version::get() to display the Phalcon version number. It is returning "3.4.2" as the version number.

I also can run the following from the command line and it also return 3.4.2:

php -r "echo Phalcon\Version::get();"

I tried searching and could not find a previous post on this issue.

Any thoughts?



2.2k
edited 12d ago

Php CLI could use another php.ini/php version than what is used for http

Phalcon\Version::get() will show the actual version used in current php.ini

i never used Ubuntu but can you explain what is paginfo()

Apologies... that should have said "phpinfo()". I corrected it above.

Both the CLI and web app (Apache) return version "3.4.2" but phpinfo() shows "3.4.3" as the installed version. Apache has been restarted. And there is only one version of phalcon.so on the machine, which is the one loaded by Apache.

Very confusing.

More info... output from phpinfo for phalcon:

Web framework delivered as a C-extension for PHP phalcon => enabled Author => Phalcon Team and contributors Version => 3.4.3 Build Date => May 31 2019 23:05:22 Powered by Zephir => Version 0.10.14-975ad02db4

Directive => Local Value => Master Value phalcon.db.escape_identifiers => On => On phalcon.db.force_casting => Off => Off phalcon.orm.cast_on_hydrate => Off => Off phalcon.orm.column_renaming => On => On phalcon.orm.disable_assign_setters => Off => Off phalcon.orm.enable_implicit_joins => On => On phalcon.orm.enable_literals => On => On phalcon.orm.events => On => On phalcon.orm.exception_on_failed_save => Off => Off phalcon.orm.ignore_unknown_columns => Off => Off phalcon.orm.late_state_binding => Off => Off phalcon.orm.not_null_validations => On => On phalcon.orm.update_snapshot_on_save => On => On phalcon.orm.virtual_foreign_keys => On => On

I restarted Apache again just to be certain and still both the CLI and the web application show 3.4.2 as the version.



2.2k
edited 12d ago

that is strange i checked for bugs nothing popped but i recommend compiling a new one with different file name

and since your current compiled file is very recent i would check the source version.zep

https://github.com/phalcon/cphalcon/blob/v3.4.3/phalcon/version.zep

I checked and version.zep is:

    protected static function _getVersion() -> array
    {
            return [3, 4, 3, 4, 0];
    }

And I ran a find and there is only one version.zep file on the server as expected.

Yeah, this is a strange one. Nothing makes any sense.



2.2k
edited 11d ago

did you compile it or download it ? did you try fresh compile ?

Fresh compile...



2.2k

find php.ini and check each one of them

im pretty sure you already done that but it wouldnt hurt to double check