Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phalcon 5 support on PHP 8.1 #1531

Open
furopi opened this issue Dec 1, 2022 · 3 comments
Open

Phalcon 5 support on PHP 8.1 #1531

furopi opened this issue Dec 1, 2022 · 3 comments

Comments

@furopi
Copy link

furopi commented Dec 1, 2022

Dear Sir,

could you please give an update of when the P5 support is estimated to arrive?

Thank you and kind regards,
Florian

@furopi furopi changed the title Phalcon 5 support Phalcon 5 support on PHP 8.1 Dec 1, 2022
@sollosollo4
Copy link

And i also have issue on php 8.0.5 when try to exec command phalcon project test

PHP Fatal error: Uncaught Error: Class "Phalcon\Config" not found in D:\domains\phalcon-project\vendor\phalcon\devtools\src\Builder\Component\AbstractComponent.php:48
Stack trace:
#0 D:\domains\phalcon-project\vendor\phalcon\devtools\src\Commands\Builtin\Project.php(74): Phalcon\DevTools\Builder\Component\AbstractComponent->__construct()
#1 D:\domains\phalcon-project\vendor\phalcon\devtools\src\Script.php(109): Phalcon\DevTools\Commands\Builtin\Project->run()
#2 D:\domains\phalcon-project\vendor\phalcon\devtools\src\Script.php(148): Phalcon\DevTools\Script->dispatch()
#3 D:\domains\phalcon-project\vendor\phalcon\devtools\phalcon(65): Phalcon\DevTools\Script->run()
#4 {main}
thrown in D:\domains\phalcon-project\vendor\phalcon\devtools\src\Builder\Component\AbstractComponent.php on line 48
Script phalcon handling the __exec_command event returned with error code 255

Environment:
OS: Windows NT DESKTOP-6O57L8K 10.0 build 19044 (Windows 10) AMD64
PHP Version: 8.0.5
PHP SAPI: cli
PHP Bin: C:\Program Files (x86)\php8\php.exe
PHP Extension Dir: C:\php\ext
PHP Bin Dir: C:\php
Loaded PHP config: C:\Program Files (x86)\php8\php.ini
Versions:
Phalcon DevTools Version: 4.2.0
Phalcon Version: 5.1.4
AdminLTE Version: 3.0.1

@sollosollo4
Copy link

ok, i fixed it by:

  1. AbstractComponent.php
    change 15: use Phalcon\Config; to use Phalcon\Config\Config;
  2. ProjectBuilder.php
    change 15: use Phalcon\Config; to use Phalcon\Config\Config;
  3. BuilderException.php
    change 15: use Phalcon\Exception; to use Phalcon\Config\Exception;

And project was created. But i dont check another commands. May be, there are still some bugs

@daleffe
Copy link

daleffe commented Mar 18, 2024

Hi friends,

For Phalcon 5.x you can use this version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants