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

Smarty4.3 を使用する #615

Merged
merged 8 commits into from
Mar 13, 2024
Merged

Smarty4.3 を使用する #615

merged 8 commits into from
Mar 13, 2024

Conversation

nanasess
Copy link
Contributor

@nanasess nanasess commented Oct 19, 2022

  • Smarty4.2 4.3 の検証
  • システム要件は PHP7.4以降に変更が必要
  • s/SmartyBC/Smarty/ の変更のみで問題ないっぽい
  • PHP8.3でも問題なし
    • PHP7.4未満と、PHP7.4以上のパッケージを分ける必要がありそう

@nobuhiko
Copy link
Contributor

世界のウミウシにも反映させよ😆

@codecov-commenter
Copy link

codecov-commenter commented Oct 20, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.20%. Comparing base (9fb10ef) to head (0846c96).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #615      +/-   ##
==========================================
- Coverage   55.21%   55.20%   -0.01%     
==========================================
  Files          75       75              
  Lines        8913     8912       -1     
==========================================
- Hits         4921     4920       -1     
  Misses       3992     3992              
Flag Coverage Δ
tests 55.20% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nanasess nanasess force-pushed the use-smarty42 branch 7 times, most recently from 2bc63e3 to 057fa22 Compare October 21, 2022 11:30
@seasoftjapan
Copy link
Contributor

master を PHP 8 (8.1以降?) で動かして、テンプレート構文を誤ると、例外処理がコケる様子でした。

Fatal error(E_COMPILE_ERROR): Type of SmartyCompilerException::$line must be int (as in class Exception) on [/**/data/vendor/smarty/smarty/libs/sysplugins/smartycompilerexception.php(8)]

これかな。smarty-php/smarty#713

この PR をマージすると、ちゃんと直りますね。

@nanasess nanasess changed the title [WIP] Smarty4.2 を使用する [WIP] Smarty4.3 を使用する Dec 17, 2023
@nanasess
Copy link
Contributor Author

Smarty4.3 でも問題なさそう

@nanasess
Copy link
Contributor Author

以下をざっと見た感じ、SC_View() クラスの更新のみで Smarty5 も動作するのではないかと思われる
https://smarty-php.github.io/smarty/5.x/upgrading/

#681 の対応にあわせて、 Smarty5 の導入も検討する

@nanasess nanasess marked this pull request as ready for review March 6, 2024 15:11
@nanasess nanasess changed the title [WIP] Smarty4.3 を使用する Smarty4.3 を使用する Mar 6, 2024
@nanasess
Copy link
Contributor Author

nanasess commented Mar 6, 2024

#854 がマージされましたので、 WIP 外しました

@dotani1111 dotani1111 merged commit 302f86f into EC-CUBE:master Mar 13, 2024
2 checks passed
@nanasess nanasess added this to the 2.18(仮) milestone Dec 16, 2024
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

Successfully merging this pull request may close these issues.

5 participants