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

Feature/php8 support #629

Merged
merged 29 commits into from
Oct 13, 2021
Merged

Feature/php8 support #629

merged 29 commits into from
Oct 13, 2021

Conversation

wisskid
Copy link
Contributor

@wisskid wisskid commented Jan 8, 2021

Proposal for a new major, ie Smarty4:

  • Dropped support for PHP7.0 and below, so Smarty 4 runs on PHP7.1, 7.2, 7.3, 7.4 and 8.0
  • Dropped support for php asp tags in templates (removed from php since php7.0)
  • Dropped deprecated API calls that where only accessible through SmartyBC
  • Dropped support for {php} and {include_php} tags and embedded PHP in templates. Embedded PHP will now be passed through as is.

Under the hood:

  • Removed all PHP_VERSION_ID and compare_version checks and conditional code blocks that are now no longer required
  • Switched CI from Travis to Github CI
  • Updated unit tests to avoid skipped and risky test warnings

@wisskid
Copy link
Contributor Author

wisskid commented Jan 9, 2021

@uwetews @mohrt @AnrDaemon any thoughts?

@wisskid wisskid mentioned this pull request Jan 9, 2021
CHANGELOG.md Outdated Show resolved Hide resolved
@scottchiefbaker
Copy link

Any updates on this? It's been over six months since this PR was submitted.

sapics and others added 2 commits August 18, 2021 22:41
* Fix indentation

* Replace url of smarty.net from http to https

* Fix breaking links

Replace from http://smarty.php.net to https://www.smarty.net

* Replace link from http to https

* Fix CHANGELOG.md
@scottchiefbaker
Copy link

scottchiefbaker commented Aug 18, 2021

I'm testing this on my site now, and so far things look good. Thanks for updating!

It's worth noting that the version number should be bumped in this testing branch.

@scottchiefbaker
Copy link

Can we get a pre-release or release candidate of version 4.0? I know there are a lot of people who would be interested in testing things against PHP 8.x.

@wisskid wisskid merged commit 39b69f0 into master Oct 13, 2021
@wisskid
Copy link
Contributor Author

wisskid commented Oct 13, 2021

Pre-release published as https://github.com/smarty-php/smarty/releases/tag/v4.0.0-rc.0
Let me know how if you're hitting any bumps testing this!

@wisskid wisskid deleted the feature/php8-support branch October 22, 2021 13:43
xorti pushed a commit to TikiWiki/tiki-manager that referenced this pull request Jan 6, 2022
@glensc
Copy link
Contributor

glensc commented Jan 10, 2022

does upgrade to 4.x have upgrade guide?

@AnrDaemon
Copy link
Contributor

Not at the moment, but we really could use one. Are you up for the task?

@wisskid
Copy link
Contributor Author

wisskid commented Jan 11, 2022

It shouldn't be hard to write, just follow the CHANGELOG line by line.

@glensc
Copy link
Contributor

glensc commented Jan 12, 2022

I ran into such problem:

so, I guess it involves some portion of trial and error.

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