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

PHP8 Support #4579

Closed
nanasess opened this issue Jun 19, 2020 · 5 comments
Closed

PHP8 Support #4579

nanasess opened this issue Jun 19, 2020 · 5 comments
Labels
improvement 機能改善
Milestone

Comments

@nanasess
Copy link
Contributor

nanasess commented Jun 19, 2020

概要(Overview)

PHP8 への対応

期待する内容(Expect) or 要望 (Requirement)

PHP8 で問題なく運用できること

再現手順(Procedure)

課題

Doctrine DBAL にてシステムエラーが発生する

PHP Fatal error:  Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $statement) in /home/travis/build/nanasess/ec-cube/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 70

DBAL 2.10.x では修正されていない
https://github.com/doctrine/dbal/blob/78de4498e4ff726bef21f5eb00781f39c0ffbc75/lib/Doctrine/DBAL/Driver/PDOConnection.php#L78

DBAL3.x では修正されている
doctrine/dbal#4042
doctrine/dbal#3803

環境 (environment)

  • EC-CUBE: 4.0.4
  • PHP: 8.0.0(nightly)
  • DB:
    • PostgreSQL x.x.x
    • MySQL x.x.x

関連情報 (Ref)

@nanasess nanasess changed the title PHP8対応 PHP8 Support Jun 19, 2020
@okazy okazy added the improvement 機能改善 label Jun 23, 2020
@okazy okazy added this to the 4.0.x milestone Jun 23, 2020
@okazy
Copy link
Contributor

okazy commented Jun 25, 2020

DBAL 2.x -> 3.x は結構影響ありそうですね。
EC-CUBE 4.x と一緒に検討が必要かと思います。

@nanasess
Copy link
Contributor Author

PHP7.4 の EOL は 2022年11月末ですので、それまでに対応が必要そうです

@okazy
Copy link
Contributor

okazy commented Nov 2, 2020

Doctrine DBAL 2.12.x でPHP8に対応見込み。
Doctrine ORMは対応中(?)
#4603 (comment)

4.1β時点では対応できない見込みのため、マイルストンをいったん 4.x とさせていただきます。

@okazy okazy modified the milestones: 4.1, 4.x Nov 2, 2020
@okazy
Copy link
Contributor

okazy commented Nov 6, 2020

DoctrineのPHP8対応ができたとしても、プラグイン側をPHP8対応する必要があり、単純には導入が難しい可能性がある。
利用している全てのライブラリがPHP8対応してくれないといけないので、すぐには難しい。

@nanasess nanasess mentioned this issue Dec 10, 2020
17 tasks
@chihiro-adachi chihiro-adachi modified the milestones: 4.x, 4.2 Apr 18, 2022
@chihiro-adachi
Copy link
Contributor

#5353 で対応。

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

Successfully merging a pull request may close this issue.

3 participants