frankenphp icon indicating copy to clipboard operation
frankenphp copied to clipboard

Windows compatibility

Open dunglas opened this issue 3 years ago • 12 comments

Currently this project is compatible with Linux and macOS (and likely with other UNIXes such as FreeBSD), but it hasn't been tested on Windows.

It would be nice to make it compatible for Windows and provide some binaries for this platform.

dunglas avatar Nov 01 '22 07:11 dunglas

I work in Windows+WSL, so I can take a look at this!

withinboredom avatar Nov 01 '22 14:11 withinboredom

Documenting as I go:

  • PHP 8.2 release (ZTS+x64): https://windows.php.net/qa/
  • GCC compiler: https://jmeubank.github.io/tdm-gcc/articles/2021-05/10.3.0-release

withinboredom avatar Nov 08 '22 15:11 withinboredom

Sent an email to internals about broken links for required windows builds.

withinboredom avatar Nov 08 '22 15:11 withinboredom

This has been fixed. Now compilation mostly works, but I may switch over to windows containers to make this more reproducible. Otherwise it is possible that only my machine can ever compile this. 😹

withinboredom avatar Nov 08 '22 17:11 withinboredom

@withinboredom Why not use Windows Server on Github action or AppVeyor to build the application?

macintoshplus avatar Nov 09 '22 16:11 macintoshplus

I'm interested in windows prebuilt binary to try the Win32Service extension. I can write a PR to configure GitHub Action but I need the command to install and build the project.

macintoshplus avatar Nov 09 '22 19:11 macintoshplus

I don't know the Windows environment at all, but these instructions should be a good start:

  • https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2
  • https://github.com/dunglas/frankenphp/blob/main/docs/compile.md

dunglas avatar Nov 09 '22 20:11 dunglas

I don't know if it's necessary to disable Zend Signals on Windows. If that's not the case (to be checked), maybe could we use the pre compiled version of PHP (ZTS) directly, as pointed out by @withinboredom: https://windows.php.net/qa/

dunglas avatar Nov 09 '22 20:11 dunglas

@macintoshplus, there will be action builders, once we get it building and test that it works correctly. There's no point in writing the action until we know what we're doing.

@dunglas I don't think we need need to worry about zend signals in Windows 🤞

withinboredom avatar Nov 09 '22 22:11 withinboredom

Any update on Windows support?

MisterDuval avatar Oct 12 '23 19:10 MisterDuval

Any update on Windows support?

EzzalddeenAli avatar Feb 18 '24 19:02 EzzalddeenAli

There has been some updates in various places outside of this issue. Check out the discussion here: https://github.com/dunglas/frankenphp/discussions/420

withinboredom avatar Feb 19 '24 05:02 withinboredom