Skip to content

PHP 8.4 #338

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

Merged
merged 8 commits into from
Nov 26, 2024
Merged

PHP 8.4 #338

merged 8 commits into from
Nov 26, 2024

Conversation

joehoyle
Copy link
Collaborator

No description provided.

@joehoyle joehoyle requested review from Xenira and danog November 22, 2024 00:35
@joehoyle
Copy link
Collaborator Author

It seems on windows, https://windows.php.net/download/ only has php 8.4.1 devel package, but currently the latest version when installing php via https://github.com/shivammathur/setup-php is 8.4.0

@danog
Copy link
Collaborator

danog commented Nov 22, 2024

8.4.1 is the first official release, 8.4.0 was actually skipped due to security bugs

@joehoyle
Copy link
Collaborator Author

@danog I wonder if 8.4.0 still got distributed some places? CI is showing:

√ PHP Installed PHP 8.4.0-dev (d0c336a6663b924e6d71d3227988f8a6666f330e)

@Xenira
Copy link
Collaborator

Xenira commented Nov 25, 2024

Regarding the version on windows we have two options here:

  1. Check back periodically / contribute to the workflow and merge once its available
  2. Disable 8.4 on windows for now and have a follow up ticket.

I would be fine with 2 for now.

@Xenira
Copy link
Collaborator

Xenira commented Nov 25, 2024

god, that solution is so stupid, but nice find

Edit: nvm :/

@joehoyle
Copy link
Collaborator Author

Hmm I think there might be a deeper issue... is the wrong build of PHP uploaded to https://github.com/shivammathur/php-builder-windows/releases/tag/php8.4?

Screenshot 2024-11-25 at 2 23 04 PM

Clearly requesting 8.4.1, but getting 8.4.0

@joehoyle
Copy link
Collaborator Author

I opened to shivammathur/setup-php#885 see if there's any assistance

@Xenira
Copy link
Collaborator

Xenira commented Nov 25, 2024

I opened to shivammathur/setup-php#885 see if there's any assistance

From what I can see this might actually be an issue in https://github.com/mlocati/powershell-phpmanager. But currently no windows available to test this. (Also powershell 🤮)

@Xenira
Copy link
Collaborator

Xenira commented Nov 25, 2024

Now the correct version is downloaded, but there is no DevelPack for 8.4.1
https://windows.php.net/downloads/releases/archives/

@Xenira
Copy link
Collaborator

Xenira commented Nov 25, 2024

There is one in https://windows.php.net/downloads/releases/ though

@joehoyle
Copy link
Collaborator Author

Doh! Are those managed by Microsoft?

@Xenira
Copy link
Collaborator

Xenira commented Nov 26, 2024

Don't know. Wasn't able to find information on where to report this.

Maybe just try finding it in releases if archives does not exist?

@joehoyle
Copy link
Collaborator Author

Phew, we're passing finally!

@joehoyle
Copy link
Collaborator Author

It's not clear what logic we should use for /archive or not. You're right that it might be best to check both, as I guess they might move at some point.

@Xenira
Copy link
Collaborator

Xenira commented Nov 26, 2024

It's not clear what logic we should use for /archive or not.

I would actually try release first as that should contain the main releases, and archive if not found.

Copy link
Collaborator

@Xenira Xenira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Improvements in windows build can/should be separate issue.

@joehoyle joehoyle merged commit bf9decd into master Nov 26, 2024
32 checks passed
joehoyle added a commit that referenced this pull request Nov 26, 2024
Follow up to #338

Windows bulds should check the releases page, and the archive, as it's not clear when they'll be moved by Microsoft.
@joehoyle joehoyle deleted the php-8.4 branch November 26, 2024 17:07
@joehoyle
Copy link
Collaborator Author

Shall I do a release 0.12.1? I don't think we're breaking anything so just a patch?

@Xenira
Copy link
Collaborator

Xenira commented Nov 26, 2024

Tbh not long enough in the project to tell if we had breaking changes since last release.

Remember the $_REQUEST super global that now panics 'gracefully' but that never worked.

I would like to have a release bot like release-plz with proper release mr's to have a better overview over the changes.

@Xenira Xenira mentioned this pull request Nov 28, 2024
@Xenira
Copy link
Collaborator

Xenira commented Nov 28, 2024

@joehoyle did an automatic scan and it seems to be api compatible. Generated Changelog:

Fixed

  • (globals) [breaking] disabled $_REQUEST super global function (#332)

Other

  • (clippy) fix new clippy errors
  • Windows build should try archives
  • fmt
  • Use vs17 on php 8.4+
  • Don't use archive for 8.4.1
  • fmt
  • Support php 8.4 internal api changes
  • PHP 8.4
  • fix pipeline (#320)
  • Update README.md (#317)

@pandanotabear
Copy link

When new release happen btw?

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.

4 participants